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

Virtualized RadTreeView and ScrollViewer.LineUp

1 Answer 40 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Lauren Nickerson
Top achievements
Rank 1
Lauren Nickerson asked on 08 Sep 2010, 02:49 AM
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++)
{
    radTreeView.ScrollViewer.LineDown();
}

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.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 13 Sep 2010, 11:16 AM
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?

Greetings,
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
Tags
TreeView
Asked by
Lauren Nickerson
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Share this question
or