:: Forum >>

Grid.Extended onHeaderClicked & onCellClicked don't work if there are multiple grids


My page contains two grids(Grid.Extended) with different IDs. The data for both grids are loaded correctly. However, the onHeaderClicked & onCellClicked events, and aw-mouseover-header style refuses to work in the first table(table at the top), while everything works fine in the second table(table at the bottom).

Thanks for help in advance!
Kun Yang
Wednesday, March 12, 2008
Could it be that you use the same variable for both grids?
Alex (ActiveWidgets)
Thursday, March 13, 2008
Alex, thanks for you quick response.

I tried to make the generated code and put it here. It magically worked when I replaced those cell links with a website url like "http://www.google.com", both onHeadClicked and onCellClicked worked correctly for both tables. Hmmm... something must be wrong with my JSP codes. Not ActiveWidgets bug. The product is awesome!
Kun Yang
Thursday, March 13, 2008
Found the issue...

I accidently put these two lines of code into a for loop:

<link href="includes/ActiveWidgets/runtime/styles/xp/aw.css" rel="stylesheet" ></link>
<script src="includes/ActiveWidgets/runtime/lib/aw.js"></script>

so, they have been included more than once! After taking out them from the loop, everything goes smoothly!!!
Kun Yang
Thursday, March 13, 2008

This topic is archived.

Back to support forum

Forum search