title: jqGrid with custom cell colors
body: <p>Is it possible in jqGrid(jquery grid <a href="http://www.trirand.com/blog/" rel="noreferrer">http://www.trirand.com/blog/</a>) to have custom cell text colors e.g. in price column i want red if price > 100$ and green if price &lt; 50$ else grey?</p>
  
  <p>More generally do </p>
  
  <ol>
  <li><p>jqGrid provides hooks to change grid cellview, e.g. i can register a callback whenver cells of price column are created or modified.</p></li>
  <li><p>or is it possible to have separate model and view (client side)
  e.g. from server i can send two data for each row i.e. how to display and what to display</p></li>
  </ol>
  
  <p>Edit: so here is an example showing the sample formatter, which colors the cell based on value</p>
  
  <pre><code>function infractionInFormatter(el, cellval, opts)
  {
      $(el).html(cellval).css('color',infraction_color_map[cellval]);
  }
  
  colModel :[ 
      ...
      {name:'date', index:'date', width:120, date:true}, 
      {name:'inf_out', index:'inf_out', width:60, formatter:infractionInFormatter,},
      ...
  ],
  </code></pre>