Scrolling to selected item in TreeListView

5 posts, 0 answers
  1. Kate
    Kate avatar
    17 posts
    Member since:
    Jul 2010

    Posted 20 Oct 2010 Link to this post

    Hello! I have scenario when I have to add items to the collection that is bound to the RadTreeListView's ItemsSource property in code. When I add items I change the SelectedItem property that is bound to SelectedItem property of RadTreeListViewSource (the binding mode is set to TwoWay). New item becomes selected, but the RadTreeListView doesn't scroll to it. How can I scroll to the item, that was added? If I use ScrollToView metod of the RadTreeListView I sometimes get an Exception in GridViewVirtualizingPanel.MeasureOverride(size).
  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 21 Oct 2010 Link to this post

    Hello Kate,

    Please try with the ScrollIntoViewAsync method. In this forum thread you can find a sample project.

    Best wishes,
    Veselin Vasilev
    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
  3. DevCraft banner
  4. Kate
    Kate avatar
    17 posts
    Member since:
    Jul 2010

    Posted 21 Oct 2010 Link to this post

    I've already studied the Scrolling example. And I've also used the ScrollIntoViewAsync method. The result was the same. I've noticed that the error occured when I resized the RadWindow which contained my RadTreeListView before a new item was added. The problem can be solved by setting EnableColumnVirtualization and EnableRowVirtualization properties to false. Is it my or RadTreeListView's mistake?

    Thanks for your reply!

  5. Kate
    Kate avatar
    17 posts
    Member since:
    Jul 2010

    Posted 21 Oct 2010 Link to this post

    I have another problem with ScrollIntoView and ScrollIntoViewAsync methods in the RadTreeListView. They scroll my rows to the bottom of the scroll area and show just the top of it (my control in the row of RadTreeListView has height="auto").How can I scroll the whole control?  
  6. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 25 Oct 2010 Link to this post

    Hi Kate,

    I would ask you to send us a sample project in a new support ticket so we can have a better look on what is going on.


    Sincerely yours,
    Veselin Vasilev
    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
Back to Top
DevCraft banner