This is a migrated thread and some comments may be shown as answers.

Get scrollbar position and then set it

2 Answers 202 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 09 Apr 2010, 04:14 PM
I want to get the position of the row that I'm currently working on so that when I refresh the grid(which scrolls me back to the top), I can select that row again and scroll to the exact position I was at before refreshing.

The ScrollIntoView works (kind of), but it simply scrolls until my selected row is at the very bottom.  I want the scrollbar to be in the exact position it was before.  I seems like if I knew the position of the scrollbar, I could just set the position after I refresh the grid.

Can I do this?

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 12 Apr 2010, 07:51 AM
Hi Scott,

You can get the scrollbar value similar to the application in this blog post.

Best wishes,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Guillermo Aquino
Top achievements
Rank 1
answered on 04 Aug 2010, 10:30 AM

 

 





Tags
GridView
Asked by
Scott
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Guillermo Aquino
Top achievements
Rank 1
Share this question
or