PDA

View Full Version : Change row's text color (not background-color) in grid



khnle
5 Feb 2008, 6:30 AM
I use the following method used to change the color of the text in each row of the grid, but it does not seem to work. The background color, font family and others are OK, but it's the color of the text in the grid that does not seem to have any effect.

myGrid.getView().getRowClass = function(record, index) {
return 'blue';
}

In the css file:
.blue td {
font-family: Verdana, Helvetica, sans-serif;
color: #0000FF;
background-color: #A0A0A0;
}

Does anyone know why or how to get around the problem? Thanks

tryanDLS
5 Feb 2008, 6:47 AM
Look at how the CSS classes are being applied to the elements in Firebug. Your class name may need to be more specific.