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

How do I expand a single node in RadTreeListView control

2 Answers 87 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 22 Nov 2012, 01:31 AM

Is there a way I can expand only a single node in RadTreeListView control ?

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 22 Nov 2012, 08:23 AM
Hi,

In order to expand a single node in the RadTreeListView, you could use the ExpandHierarchyItem method. 

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Frank
Top achievements
Rank 1
answered on 22 Nov 2012, 07:33 PM

Thanks. That worked. But I how do I expand all the root nodes ?
e.g

ContainerA
         SubContainerA
         SubContainerB

ContainerB
         SubContainerA

ContainerC
         SubContainerA
         SubContainerB

I did  ExpandHierarchyItem(treelistview.Items[0]) and this expanded the first root node which is ContainerA.
I want to be able to expand the remaining root nodes as well i.e ContainerB and ContainerC.

Is there any property that tells if the node is a root node ? Number of SubContainers is not constant.
Tags
General Discussions
Asked by
Frank
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Frank
Top achievements
Rank 1
Share this question
or