:: Forum >>

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
Cal
Thursday, October 5, 2006
You could achieve this by the following one.

grid.setScrollTop(<position of the row>)
Pandi
Saturday, October 28, 2006
As the above said solution was working in the Beta version. With the Original version It is not working.Mr Pans can you give some solutions?.
nimi
Saturday, October 28, 2006
Please see the response on this:
http://www.activewidgets.com/javascript.forum.16455.2/half-of-the-rows-are.html
Pandi
Tuesday, October 31, 2006

This topic is archived.


Back to support forum

Forum search