title: extjs conditionally render columns
body: <p>lets say I have a gridpanel with 2 columns :Name and Salary, The dataIndex of the corresponding store has the same names</p>
  
  <p>In extjs, a renderer function goes like this:</p>
  
  <pre><code>function(value, metaData, record, rowIndex, colIndex, store){}
  </code></pre>
  
  <p>Now, when I call a randerer, based on the name of the proeprty, if I wish to do different rendering, how do I go about it?
  e,g.</p>
  
  <pre><code>function(value, metaData, record, rowIndex, colIndex, store){
  if (record.name == 'Salary'|| record.id == 'Salary')
  {
  //render logic
  }
  else if (record.name == 'Name'|| record.id == 'Name'){
    //different render logic
  }
  }
  </code></pre>
  
  <p>What is the correct syntax for this?</p>