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

Scrolling to selected item in TreeListView

4 Answers 113 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Kate
Top achievements
Rank 1
Kate asked on 20 Oct 2010, 09:12 AM
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).

4 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 21 Oct 2010, 08:11 AM
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
0
Kate
Top achievements
Rank 1
answered on 21 Oct 2010, 08:38 AM

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!

0
Kate
Top achievements
Rank 1
answered on 21 Oct 2010, 11:08 AM
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?  
0
Veselin Vasilev
Telerik team
answered on 25 Oct 2010, 01:48 PM
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
Tags
TreeListView
Asked by
Kate
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Kate
Top achievements
Rank 1
Share this question
or