In extjs, for the record object, is there a awy to get a particular data index. What I need is this: I have a renderer function that formats decimals. If the dataIndex of the record is a 'dollaramount', i format one way. If something else, I format another way. So the function is:
decimalsRenderer: function(value, metaData, record, rowIndex, colIndex, store){
if (record.data.index =='amount')
// format using 2 decimals
else
//format using 3 decimals
},
But record.data.index is not allowed. How can i do it?