RadGridView scroll position reset after Rebind()

5 posts, 0 answers
  1. Chandan
    Chandan avatar
    8 posts
    Member since:
    Sep 2011

    Posted 27 Feb 2012 Link to this post

    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.
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 27 Feb 2012 Link to this post

    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 >>
  3. Chandan
    Chandan avatar
    8 posts
    Member since:
    Sep 2011

    Posted 27 Feb 2012 Link to this post

    Hi Maya,
    Thanks a lot for the solution. It's working fine now.

    Regards,
    Chandan.
  4. Joseph
    Joseph avatar
    9 posts
    Member since:
    Jun 2007

    Posted 30 Jun 2015 in reply to Maya Link to this post

    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.
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 01 Jul 2015 Link to this post

    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
Back to Top