I want to populate the data source of my grid asynchronously from the server while displaying the first rows to the user in virtual mode. When new rows arrive from the server only the row count has to be updated, scroll position and all currently displayed rows remain unchanged. So only the scrollbar display has to be changed.
How could this be accomplished using the standard virtual mode example?
1. tried to call setRowCount() and refresh()
-> does a full refresh.
2. tried to call addRow()
-> no full refresh, but scrolls to the newly added row.
What would be the best way to do this?
Thanks in advance!
Monday, November 27, 2006
I too face a similar problem , but the only difference is that the row jumps to the bottom of the visible grid view when it is selected. This basically means that the scroll bar position shifts.
I have a similar problem. I am receiving chunks of data 100 rows at a time and need to add it to the grid. To keep the UI responsive I am adding the rows in smaller chunks via an interval with the following code: