Adobe AIR - Grid Scroll Bars Not Working
I have a pretty extensive project written in Javascript running in AIR that is almost completely based on AW. Didn't start out the way, but I kept finding ways to use the AW features.
I do, however, have one issue. If I call grid.refresh(), grid.clearRowModel() or do a table.request() anytime after the initial load of the data (javascript or XML data) the scroll bars becomes ineffective. They are visible, and they move with the mouse, but no scrolling takes place within the grid. If I select a cell and then arrow up or down within the grid, the grid will scroll, and the scroll bars follow.
This is most problematic when populating the grids with new data. Clearing the grid for re-use seems to inevitably require a call to grid.refresh(). I have tried to recreate my own refresh, (setRowCount(0), clearRowModel(), deleting rows one at a time, etc.) but the data, the row indices, the grid HTML get out of sync really fast, at some point, a call to grid.refresh() is required to get everything cleaned up and ready for re-use. All with no effect on getting the scroll bars 're-attached'.
This is easily demonstrable using the AW 'change datasets.htm' example that shows how to load two different datasets into the grid. The scroll bars are ineffective immediately, as stated above.
The only mod made to the example to run it in AIR is to add the line:
<script src="<yourpath>/AIRAliases.js" type="text/javascript"></script>.
And you only need a minimally edited descriptor file (application.xml) to run it.
Has anybody had any experience with or a work around for this?
Environment:
AW 2.5.5
Adobe AIR 1.5
Windows XP
Thanks!
I do, however, have one issue. If I call grid.refresh(), grid.clearRowModel() or do a table.request() anytime after the initial load of the data (javascript or XML data) the scroll bars becomes ineffective. They are visible, and they move with the mouse, but no scrolling takes place within the grid. If I select a cell and then arrow up or down within the grid, the grid will scroll, and the scroll bars follow.
This is most problematic when populating the grids with new data. Clearing the grid for re-use seems to inevitably require a call to grid.refresh(). I have tried to recreate my own refresh, (setRowCount(0), clearRowModel(), deleting rows one at a time, etc.) but the data, the row indices, the grid HTML get out of sync really fast, at some point, a call to grid.refresh() is required to get everything cleaned up and ready for re-use. All with no effect on getting the scroll bars 're-attached'.
This is easily demonstrable using the AW 'change datasets.htm' example that shows how to load two different datasets into the grid. The scroll bars are ineffective immediately, as stated above.
The only mod made to the example to run it in AIR is to add the line:
<script src="<yourpath>/AIRAliases.js" type="text/javascript"></script>.
And you only need a minimally edited descriptor file (application.xml) to run it.
Has anybody had any experience with or a work around for this?
Environment:
AW 2.5.5
Adobe AIR 1.5
Windows XP
Thanks!
Chris M.
November 11,