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

Expand to show new added items

1 Answer 57 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 06 Mar 2013, 05:27 PM
Hi

I have a tree structure that's mirrored in a viewmodel structure - there's various event handlers in a 'wrapper' collection that monitor the tree structure for items added and removed and creates and removes corresponding viewmodels.

When a viewmodel is added, it appears in the TreeListView as expected.

Is there any way I can expand and select a 'new' item?

I know I can bind selected items and IsExpanded, but from my description you might see that I don't have the viewmodel when the model is changed - this is done automatically.  I thought I'd see if anyone had a better idea before I go down that route.

Thanks!

Charles

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 07 Mar 2013, 06:52 AM
Hi Charles,

 The only way to scroll an item into view is to use some of the RadTreeListView methods like ScrollIntoView, ScrollIntoViewAsync, etc. 

Kind regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TreeListView
Asked by
Charles
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or