View Full Version : set the background color of a row in grid when mouseover and select a row

25 Dec 2014, 7:13 PM

I have a grid and set the background color for a row when mouseover or select. I made it by set the viewConfig like this:

viewConfig: {
selectedItemCls: 'my-row-selected-color',
overItemCls: 'my-row-over-color'

it works fine but I find a problem: when mouseover a row and mousedown the row is still in mouseover effect. only after the mouse leave the row then it shows the selected effect.

How can i remove the mouseover effect when press a row(but the mouse is still on the row)?

Thanks for any answer in advance.

26 Dec 2014, 5:14 PM
It depends on the specificity of the CSS selectors you're using but if they are equal you should just need to ensure the rules are in the right order in your stylesheet.