I have a ExtJS ListView as below:
var myList = new Ext.list.ListView({ id:'mylist-view', store: mystore, multiSelect: true, emptyText: 'No content to display', reserveScrollOffset: true, columns: [{ header: 'Header-1', width: .3, dataIndex: 'data-1' },{ header: 'Header-2', width: .3, dataIndex: 'data-2', align: 'right' },{ header: 'Header-3', width: .3, dataIndex: 'data-3', align: 'right' }], });
I want to set a different background color for a specific row. How can I do it?
I referred some other solutions provided for the similar issue and tried the following:
viewConfig: {
getRowClass: function(record, index, rowParams, ds) {
return record.get('data-1') == 'Total' ? 'background-color: #EEEEEE' : '';
}
}
But, that doesn't help.