RadTreeView Inside RadCombobox

3 posts, 0 answers
  1. karthik
    karthik avatar
    2 posts
    Member since:
    Dec 2008

    Posted 17 Dec 2008 Link to this post

    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. Eddie Edwards
    Eddie Edwards avatar
    1 posts
    Member since:
    Dec 2009

    Posted 22 Sep 2010 Link to this post

    I'm having the same problem. Anyone has a solution?
  3. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 24 Sep 2010 Link to this post

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