Thiago,
The mouse out and over handlers change the background color, as the user
moves teh mouse over the table. I also need to set the onclick of each
td so it goes to a new page. I'll have a look at doing it the prototype
way :-(. I suppose it really is the proper way to that.
I had another idea, that I could modify the DOM tree after rendering
(say in cleanupRender) but I haven't seen any examples do this.
Ciao,
Jonathan
On 09/02/2009 18:27, Thiago H. de Paula Figueiredo wrote:
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. ;)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]