PDA

View Full Version : Css color problem at row class



mcadirci
21 Dec 2010, 3:37 AM
Hello,

I have a grid with
viewConfig: {
getRowClass: function(record, index) {
var style = 'grid';
if( record.json.state == 'N' ){
style = 'gridError';
}
if( index % 2 == 0 ){
style += 'Even';
}
else{
style += 'Odd';
}
return style;
}
}and css:
.gridEven{
background-color: #E9E9E9;
color: #990000;
}
.gridErrorOdd{
background-color: #F5d2d2;
color: #990000;
}The problem is background-color applied but the color did not. (As at the image)
How can I apply the color?