.x-grid-record-red table{//字体色
color: #FF0000;
}
.x-grid-record-green table{ //背景色
background: #00FF00;;
}
viewConfig : {
forceFit : true,
getRowClass : function(record,rowIndex,rowParams,store){
//禁用数据显示红色
if(record.data.mydata=="testdata"){
return 'x-grid-record-red';
}else{
return 'x-grid-record-green';
}
}
},