ExpandTreeList on slect of a node

5 posts, 0 answers
  1. Kushal
    Kushal avatar
    11 posts
    Member since:
    Sep 2011

    Posted 10 Nov 2011 Link to this post

    How to expand  a treeNode and its child node on select of a select column?
    I am using TreeListSelectColumn. and I want to expand all the child item on selection of a node.
    <telerik:TreeListSelectColumn UniqueName="SelectColumn" HeaderStyle-Width="40px" ><HeaderStyle
            Width="40px" /></telerik:TreeListSelectColumn>

    Any help would be greatly appriciated.

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Nov 2011 Link to this post

    Hello Kushal,

    Try the following code.
    C#:
    protected void RadTreeList1_ItemCommand(object sender, TreeListCommandEventArgs e)
    {
     if (e.CommandName == RadTreeList.SelectCommandName)
      {
        RadTreeList1.ExpandAllItems();
      }
    }

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kushal
    Kushal avatar
    11 posts
    Member since:
    Sep 2011

    Posted 10 Nov 2011 Link to this post

    Thanks Shinu.

    I am looking to expand only the child items of a node, not the entire treelist. can you please tell me how to do it?
  5. Kushal
    Kushal avatar
    11 posts
    Member since:
    Sep 2011

    Posted 10 Nov 2011 Link to this post

    Any help is reallly appriciated!
  6. Kushal
    Kushal avatar
    11 posts
    Member since:
    Sep 2011

    Posted 15 Nov 2011 Link to this post

    I am still struggling. any pointers would be of great help. 
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017