:: Forum >>

please help - licensed developer for 2.0

Hello Alex, I am trying to resize the grid upon a row click using the setSize(-1, 120) which works just fine (the grid resizes to 5 rows).

Then I show a detail page related to the row that was clicked (using prototype methods). When you view the detail page (and resize the list) and then close the detail page (called "Maximize List" in example) you lose the mouse click event capturing for any rows greater than the resized amount (rows 6 or higher).

To reproduce:
go to http://24.172.76.154:8080/mab-mbox/gridTest.action
click in row 1 to view the detail page
click "Close Detail Page"
click in row 6 (or higher than 6)
- you should see that the alert that is displayed on mouse click does not display

Please help. Thanks.
I purchased the 2.0 version of ActiveWidgets from joe[at]binamics[dot]com

Joe Hudson
Joe Hudson
Wednesday, September 6, 2006
Joe, I would suggest using setStyle("height", "120px") instead of setSize(-1, 120) - negative width triggers css errors. You should also add

getSelectedGrid().refresh();

into restoreSelectedGrid function - firefox does not fire resize events so you have to trigger recalculation of the grid dimensions with refresh(). This seem to fix the missing clicks problem.
Alex (ActiveWidgets)
Wednesday, September 6, 2006
Alex,

as always... you have solved my problem. Thank you very much for your time and excellent product!

Joe
Joe Hudson
Wednesday, September 6, 2006
A slight problem has surfaced as a result of adding the refesh call in there (although I would much rather have this problem than the last :) but if you know how to fix it, I would greatly appreciate it.

To reproduce:
go to http://24.172.76.154:8080/mab-mbox/gridTest.action
click on row 18
click "Close Detail Page"

You will see that there is a bunch of empty space where the grid should be (and the scroll area doesn't accurately represent the size of the grid anymore) but as soon as I click the up arrow on the scroll bar, the grid resets itself. Do you know what I could do to fix this? Thank you very much.

Joe Hudson
Joe Hudson
Wednesday, September 6, 2006

This topic is archived.


Back to support forum

Forum search