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

RadTreeview - node click(Urgent)

3 Answers 132 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Sindu
Top achievements
Rank 1
Sindu asked on 16 Nov 2011, 05:44 PM

Hi,

I have a radtreeview .it has 3 Treenode .I have a RadTreelist inside the node template .how to expand the treelist when I expand the treenode ? or In which treenode event should be used for this purpose?

Thanks

Sindu.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Nov 2011, 06:07 AM
Hello,

You can try the following code snippet.
C#:
protected void tree_NodeClick(object sender, Telerik.Web.UI.RadTreeNodeEventArgs e)
   {
       e.Node.Expanded = true;
       RadTreeList list = (RadTreeList)e.Node.Nodes[0].FindControl("RadTreelist1");
       list.ExpandAllItems();
   }

Thanks,
Princy.
0
Sindu
Top achievements
Rank 1
answered on 17 Nov 2011, 03:10 PM
Hi Princy,

Thanks for your reply ...
I have used the below code for node click.But when I click the treeview node ,that event node_click is not fired .
Should I give anything in the .aspx (design)?

Thanks

Sindu.
0
Tsvetina
Telerik team
answered on 22 Nov 2011, 09:28 AM
Hi Sindu,

Can you confirm that you have set AutoPostBack="true" for the RadTreeView control? This is needed in order to get postbacks (and the NodeClick event) on clicking a node.

Greetings,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
TreeList
Asked by
Sindu
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Sindu
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or