title: Jqgrid using cellattr to toggle a class on seperate cell
body: <p>in my col model i have two cells 'Status' and 'HiddenStatus'. The reason for this is 'Status' is translatable so this way is better rather than checking the value for each language. As you can see below i am attempting to set the class of the 'Status' cell based on the value of the 'HiddenStatus' cell. However this is not working as i hoped since the class is not being set correctly. </p>
  
  <p>I believe the issue i am having is, 'getCell' is used to return the value rather than an object. How can i get the cell as an object so i can then manage what class i add or remove.</p>
  
  <pre><code>{name: 'Status', width: 70, index: 'Status'},
  {name: 'HiddenStatus', width: 70, hidden: true, cellattr : function(rowId, cellValue, rawObject, cm, rdata){
  
   var statusCell = $(this).jqGrid('getCell',rowId,'Status');
  
   if(cellValue != "Assigned"){
      $(statusCell).removeClass('status-assigned');
      return '';
   }
   if(cellValue == "Assigned"){
      $(statusCell).addClass('status-assigned');
      return '';
   }                           
  }},
  </code></pre>