title: EXTJS Grid row colour change dynamically with getting colour code from database
body: <p>I am working on an EXTJS grid whose row-color will be set according to a field(status field) value from the table.</p>
  
  <p>User can edit the fields of the row and after clicking update, the color of the row will change according to status field value set for that row.</p>
  
  <p>I need the row background color should be set fetching from a table in db.</p>
  
  <p>Currently I am setting different css class with checking the status field value using following code.</p>
  
  <pre><code>getRowClass: function(record, rowIndex, rp, ds)
  {
      if( record.get('status') == 'xxxxx' )
      {
          return 'status-xxxxx';
      }
      else if( record.get('status') == 'yyyyy' )
      {
          return 'status-yyyyy';
      }
      else
      {
          return 'status-zzzzzz';
      }
  }
  </code></pre>
  
  <p>I have the color in the store with the status value for each row.</p>
  
  <p>But I need the color should be fetched from db and set as row background.</p>
  
  <p>Can any one help me to achieve this.</p>
  
  <p>Thanks</p>