title: How do I add a css class to particular rows in slickGrid?
body: <p>I've searched everywhere to find out how to add a class to a particular row in slickgrid.  It looks like there used to be a rowCssClasses property but it's gone now.  Any help on this would be extremely appreciated.</p>
  
  <p><strong>Update</strong>: I figured it out using the getItemMetadata...so before you render, you have to do something like this:</p>
  
  <pre><code>dataView.getItemMetadata = function (row) {
      if (this.getItem(row).compareThis &gt; 1) {
          return {
              'cssClasses': 'row-class'
          };
      }
  };
  </code></pre>
  
  <p>That will inject that 'row-class' into the row that matches the if statement.  It seems that this getItemMetadata function doesn't exist until you put it there and slickGrid checks to see if there's anything in there.  It makes it kind of difficult to figure out it's options but if you search for getItemMetadata in the slick.grid.js file you should find some hidden treasures! I hope this helps someone!</p>
  
  <p>If there's a better way of doing this, please let me know.</p>