EXT
viewConfig: {
getRowClass: function(record, rowIndex, rowParams, store){
if(record.data.state=='1'){
return 'x-grid-record-red';
}
//else{
// return 'x-grid-record-yellow';
//}
}
},
css
.x-grid-record-red .x-grid-cell{
background: #E6D1E3;
}
.x-grid-record-yellow .x-grid-cell{
background: #F3FEC2;
}
.x-grid-record-green .x-grid-cell{
background: #92FCCC;
}