PDA

View Full Version : Row Highlight for an EditorGridPanel.



dduffy
22 Jul 2010, 8:58 AM
Hi there,

I noticed when I changed from a GridPanel to an EditorGridPanel that when the mouse is over the row, it no longer highlights, how do you turn this back on? I simply want the mouse roll over to change the colour of the current row; I only have one column that is editable.

Darragh

dduffy
23 Jul 2010, 3:17 AM
Anyone have any ideas on this?

fay
23 Jul 2010, 4:11 AM
Add trackMouseOver: true to your EditorGridPanel's config.

From the GridPanel docs:



trackMouseOver : Boolean
True to highlight rows when the mouse is over. Default is true for GridPanel, but false for EditorGridPanel.

antonye
23 Jul 2010, 5:11 AM
Add trackMouseOver: true to your EditorGridPanel's config.

Thanks for this - the same "fix" was on my list of things to do in my app and it worked for me :D

dduffy
23 Jul 2010, 5:19 AM
Excellent Fay, works nicely.