ServerSide ExpandMode

4 posts, 0 answers
  1. Venkata
    Venkata avatar
    128 posts
    Member since:
    Nov 2009

    Posted 12 Aug 2014 Link to this post

    I want to populate huge(Parent/Childs) data in RadDropDownTree from the database. But it's taking long time to load.
    What i want to do..
    I want populate first Parent Data then when user click on + then populate the child data
    DataTable dtData = GetList();
    RadTreeNode rootTreeNode = new RadTreeNode();
    foreach (DataRow row in dtData.Rows)
        rootTreeNode = new RadTreeNode(row["name"].ToString(), row["ID"].ToString());    
        if (Convert.ToBoolean(row["HasChilds"]))
           // HERE I WANT TO ADD SERVERSIDE EXPAND MODE                   
       RadddTreeSubFile.EmbeddedTree.Nodes.Add(rootTreeNode );

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 13 Aug 2014 in reply to Venkata Link to this post

    Hi Venkata,

    Please have a look into this online demo which describes the Load On Demand feature of RadTreeView.

  3. Venkata
    Venkata avatar
    128 posts
    Member since:
    Nov 2009

    Posted 29 Aug 2014 Link to this post

    Does RadDropDownTree supports ExpandMode at serverside?
  4. Boyan Dimitrov
    Boyan Dimitrov avatar
    2062 posts

    Posted 02 Sep 2014 Link to this post


    I would suggest accessing the embedded RadTreeView using the RadDropDownTree property EmbeddedTree. Once you have a reference to the RadTreeView you are able to set the expand mode for node or add a new node with ExpandMode server-side. Please find here more information.

    Boyan Dimitrov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top