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

ExpandTreeList on slect of a node

4 Answers 74 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Kushal
Top achievements
Rank 1
Kushal asked on 10 Nov 2011, 07:43 AM
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.

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Nov 2011, 08:57 AM
Hello Kushal,

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

-Shinu.
0
Kushal
Top achievements
Rank 1
answered on 10 Nov 2011, 10:12 AM
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?
0
Kushal
Top achievements
Rank 1
answered on 11 Nov 2011, 02:18 AM
Any help is reallly appriciated!
0
Kushal
Top achievements
Rank 1
answered on 15 Nov 2011, 08:23 AM
I am still struggling. any pointers would be of great help. 
Tags
TreeList
Asked by
Kushal
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Kushal
Top achievements
Rank 1
Share this question
or