Em Mon, 09 Feb 2009 14:19:20 -0300, Jonathan O'Connor <[email protected]> escreveu:

Hi,
I would like to modify the way grid rows are rendered. I want add an onmouseout, onmouseover handlers to the <tr> tags.

Rendering or adding behaviour? :)

I suppose I could do a load of cut and paste, and reimplement the grid, but is there an easier way?

If all you need is to change background colors and/or foreground colors, you can accomplish that just using CSS (all Grids are rendered as <table class="t-data-grid"> and you can use the rowClass parameter to assign CSS classes to <tr> tags).

If you really need Javascript, try using Prototype to get any <table> with class="t-data-grid" then iterate through the nested <tr> elements. ;)

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to