Bug in 2.0.1 - grid top row disappears
var obj = new AW.UI.Grid; obj.setCellData("cell"); obj.setHeaderText("header"); obj.setColumnCount(10); obj.setRowCount(2); obj.setSelectedRows(); // obj.setScrollTop(0); document.write(obj);
The possible workaround - explicitly set scroll top to 0,
The ver 2.0.1 seems to fix my other problems but introduced this new one. I am keeping the selected row in session and highlight it when the user comes to screen again. If he had not selected any row previously or when the row selection is not in session, I highlight the first row.
obj.setScrollTop(0) does not work for me because if the user has selected any row in between, the table scrolls up without the selected row in view....
Any workarounds would be highly appreciated.............
When table does not hav scroll, the first line just don't show data, any idea now?
I have a problem with an ActiveWidget grid. ie
I am loading the grid with 980 records. Now I am scrolling the grid and select a grid row id of 789 and moving to another page.I am storing selected row id in my session.Again when I come back to this screen, I need to highlight the same grid row and using 'scrolltop' the record to be visible.
But what happens, as soon as the grid got created with the scrolltop, the row is getting highlighted and visible.But since the records in the grid is getting late to load on the grid, the grid is highlighting the first row as default.
Could you tell me some work around.
does only function with the first grid.
In the second grid the grid top row still disappears..
Do you have a work around, when there are more than one grids at one page?
The grid top row disappears, although I set
in the pages...
I've written this code after printing the grid (and the onHeaderClick is disabled)
... obj.setSelectionMode("single-row") obj.setCurrentRow(1); obj.setSelectedRows();
So my first row is not visible, but if i click in the header separator, an event is fired (i don't know which one it is), after a second the grid seems to be reconstructed and the first row is visible!
Maybe this can help to get a solution for this issue
PD: sorry for my english.
Here's my code:
// Init grid var myCells = [ ["MSFT","Microsoft Corporation", "314,571.156"], ["ORCL", "Oracle Corporation", "62,615.266"] ]; var myHeaders = ["Ticker", "Company Name", "Market Cap."]; var grid1 = new AW.UI.Grid; grid1.setId("grid1"); // assign cells and headers text grid1.setCellText (myCells); grid1.setHeaderText (myHeaders); grid1.setSelectionMode ("single-row"); grid1.setColumnCount (myHeaders.length); grid1.setRowCount (myCells.length); // Select first row (0) grid1.setSelectedRows (); grid1.setScrollTop (-1); grid1.refresh ();
Just change the  to whatever row you want selected when the grid loads.
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.