extjs grid设置某行字体颜色 行颜色
.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';}}},