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

ServerSide ExpandMode

3 Answers 66 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Venkata
Top achievements
Rank 1
Venkata asked on 12 Aug 2014, 07:36 PM
Hi,
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 );
}

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 13 Aug 2014, 10:05 AM
Hi Venkata,

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

Thanks,
Princy.
0
Venkata
Top achievements
Rank 1
answered on 29 Aug 2014, 03:44 PM
Does RadDropDownTree supports ExpandMode at serverside?
0
Boyan Dimitrov
Telerik team
answered on 02 Sep 2014, 05:30 PM
Hello,

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.


Regards,
Boyan Dimitrov
Telerik
 

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.

 
Tags
DropDownTree
Asked by
Venkata
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Venkata
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Share this question
or