This content has been marked as final. Show 3 replies
There are two ways.
the easiest is to keep track of the current selectedIndex when the user clicks on a row.
Then, after the data has returned, set the selectedIndex to this value.
More difficult is to track what data has changed, and use the dataProvider API to update only that data, instead of re-assigning the entire dataProvider.
Also, If the selectedIndex is not visible, you might need to set verticalScrollPosition.
thinking a bit more, also record the value of the firstVisibleRow, and set that too.
Finally, after assigning the dataProvider, you might need to use callLater() to delay setting the dgPosition
Thanks a lot for your help, it worked.
I just save the verticalcrollPosition before updating the dataprovider, and after i set it again.