Virtualized RadTreeView and ScrollViewer.LineUp

2 posts, 0 answers
  1. Lauren Nickerson
    Lauren Nickerson avatar
    52 posts
    Member since:
    Jul 2009

    Posted 07 Sep 2010 Link to this post

    If I call this code in a virtualized scroll viewer with 3000 thousand items, the ScrollViewer won't move even 25% of the number of times I call it:

    for (int i = 0; i < 1000; i++)

    For some reason it stops at some point. Let me know if there's a way to fix this. I want to be able to move the RadTreeView a certain amount of times when the user clicks on a button, but this is preventing me from doing it, some times the amount is very large as in the example code above.

  2. Miro Miroslavov
    Miro Miroslavov avatar
    588 posts

    Posted 13 Sep 2010 Link to this post

    Hi Lauren Nickerson,

    This is kind of limitation of the ScrollViewer itself. It works the same way in non-virtualized TreeView, even with the RadTreeView and native TreeView. The ScrollViewer scrolls maximum 31 lines.
    You can check the attached example project demonstrating it.
    Why not using BringIntoView method or ScrollToVerticalOffset method of the ScrollViewer?

    Miro Miroslavov
    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