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

RadGridView scroll position reset after Rebind()

4 Answers 534 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chandan
Top achievements
Rank 1
Chandan asked on 27 Feb 2012, 07:52 AM
Hi,
I am using Telerik Q3 2011 release version of RadGridView. In the GridView, after modifications in the gridview items, after I call Rebind(), the vertical scroll position gets reset to the start of the grid. My requirement is to maintain the position of the vertical scroll to the same position as was before modification of the items. I have tried using ScrollIntoView() and BringIntoView() methods but they dont fulfill the requirement. Request herebye to provide assinstance in this regard.

Regards,
Chandan.

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 27 Feb 2012, 07:55 AM
Hi Chandan,

Actually, this would be the expected behavior. What you can try is to save the state of the ScrollViewer and apply it after you have called Rebind(). Please refer to this forum thread for a reference.
 

Greetings,
Maya
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Chandan
Top achievements
Rank 1
answered on 27 Feb 2012, 01:03 PM
Hi Maya,
Thanks a lot for the solution. It's working fine now.

Regards,
Chandan.
0
Joseph
Top achievements
Rank 1
answered on 30 Jun 2015, 09:43 PM
Can you please explain how this is done in Winforms. The post you refer to is in Silverlight and there is no .ChildrenOfType (or simliar) method that I can find in your UI for Winforms for RadGridView. It seems to be rather straight forward, I am just having difficulty finding how I can access the RadScrollViewer control of the RadGridView.
0
Maya
Telerik team
answered on 01 Jul 2015, 07:12 AM
Hello Joseph,

Please write in the WinForms forums since you will get a more accurate answer there. 

Regards,
Maya
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Chandan
Top achievements
Rank 1
Answers by
Maya
Telerik team
Chandan
Top achievements
Rank 1
Joseph
Top achievements
Rank 1
Share this question
or