Restore scroll position and selection separately?
I have a grid which refreshes periodically. I have implemented functionality which records a users row selection and reinstates is after each refresh.
[Aside: rows are identified by a primary key and may not exist at the same index on refresh so a lookup array is used to convert from pk to index and the latter used with grid.setSelectedRows([index]). All of this is working fine.]
However I can't seem to retain the scroll position separately once a selection has been made: on refresh the vertical scroll position scrolls to the selected row regardless of where it was prior to the refresh.
Can anyone tell me if this is possible, and if so, how?
Cheers,
Cal
[Aside: rows are identified by a primary key and may not exist at the same index on refresh so a lookup array is used to convert from pk to index and the latter used with grid.setSelectedRows([index]). All of this is working fine.]
However I can't seem to retain the scroll position separately once a selection has been made: on refresh the vertical scroll position scrolls to the selected row regardless of where it was prior to the refresh.
Can anyone tell me if this is possible, and if so, how?
Cheers,
Cal
Cal
October 5,