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

Programmatically expand selcted node

2 Answers 66 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 26 Mar 2012, 08:30 PM
I am attempting to expand a selected node from code when adding a child to it. I have done this in the TreeView using the SelectedContainer and setting the IsExpanded property to true. I can't see a way to do this in TreeListView however. The items in my TreeListView are databound to a list of objects. Is there a way do this in code for the TreeListView?

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 27 Mar 2012, 06:58 AM
Hi,

 You can expand the desired node by using ExpandHierarchyItem(object item) method of the TreeListView.
Please check how it works and let me know in case you have any further questions.

Greetings,
Didie
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Tom
Top achievements
Rank 1
answered on 27 Mar 2012, 03:09 PM
That was exactly what I needed. Thanks!
Tags
TreeListView
Asked by
Tom
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Tom
Top achievements
Rank 1
Share this question
or