Internal ScrollViewer not stretching back when data is changed

2 posts, 0 answers
  1. Valeriu
    Valeriu avatar
    21 posts
    Member since:
    Dec 2010

    Posted 23 Mar 2012 Link to this post

    Hello

    I have an issue with RadTreeView and his internal ScrollViewer.

    I'm enabling scrolling with:

      ScrollViewer.VerticalScrollBarVisibility="Auto"

    I have a data source that I'm binding to RadTreeView. Collection of items is changed on user's action. When a collection is large or user have expanded some nodes the ScrollViewer becomes visible. Say after that we scrolled to the last node. If after user's action the collection becomes smaller so it will fit on available space, the ScrollViewer will not update the scrollbar area/position and will not "stretch" back. To see items in radtreeview now user should scroll it to top.

    Questions:

     - is it a bug or programmed behavior?

     - how can I force redrawing/recalculation of Scroll area so that items will be always visible?

    Thanks

  2. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 27 Mar 2012 Link to this post

    Hi,

    I've created a sample application (attached) but couldn't simulate the issue.
    Could you please try to modify it in order to introduce the issue?

    Regards,
    Hristo
    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. DevCraft banner
Back to Top