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

RadTreeView Inside RadCombobox

2 Answers 139 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
karthik
Top achievements
Rank 1
karthik asked on 17 Dec 2008, 01:48 PM
hi
this is karthik from bangalore..

How can i use the radtreeview inside the radcombobox .  i saw demo example but there load the tree in client side but i want to load server side.. How?

please help me

2 Answers, 1 is accepted

Sort by
0
Eddie Edwards
Top achievements
Rank 1
answered on 22 Sep 2010, 11:48 AM
I'm having the same problem. Anyone has a solution?
0
Veronica
Telerik team
answered on 24 Sep 2010, 04:37 PM
Hi Eddie and Karthik,

You can subscribe to the OnNodeExpand server-side event of the RadTreeView. In my example I use Load-On-Demand technique and add 5 nodes on expanding of the root node:

protected void RadTreeView1_NodeExpand(object sender, RadTreeNodeEventArgs e)
    {
        RadTreeNode node = e.Node as RadTreeNode;
        for (int i = 0; i < 5; i++)
        {
            node.Nodes.Add(new RadTreeNode("Child Node" + i));
        }
    }

Find the full code in the attached .zip file.

Please let me know if you have further questions.

All the best,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
karthik
Top achievements
Rank 1
Answers by
Eddie Edwards
Top achievements
Rank 1
Veronica
Telerik team
Share this question
or