How do I expand a single node in RadTreeListView control

3 posts, 0 answers
  1. Frank
    Frank avatar
    2 posts
    Member since:
    Nov 2012

    Posted 21 Nov 2012 Link to this post


    Is there a way I can expand only a single node in RadTreeListView control ?
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 22 Nov 2012 Link to this post

    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.

  3. DevCraft banner
  4. Frank
    Frank avatar
    2 posts
    Member since:
    Nov 2012

    Posted 22 Nov 2012 Link to this post


    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.
Back to Top