View Full Version : Conditional colouring of grid row on hover

29 Mar 2011, 6:41 AM
I was wondering if anyone knows how to change the color of a hovered or selected row based on a particular condition.

I have written a function to override getRowClass to change the background color of a row given the value of one of it's fields and would like to do something similar for hovering and selecting.

I've seen how to change the row color to a different static color using:

.x-grid3-row-selected {
background-color:red !important;

I could modifying the x-grid3-row-selected class every time a hover event occurs on a row but this seems less than ideal.