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

Adding 100's of tree nodes to tree view at client side.

1 Answer 56 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Mufaddal
Top achievements
Rank 1
Mufaddal asked on 15 May 2013, 10:59 AM
Question: We are currently adding 100's of nodes in a tree view control using javascirpt function. We are getting json objects in java script method from WCF service which we then add to tree view, The problem is that this whole process is taking huge amount of time. What could be an efficient way to perform this operation...???

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 21 May 2013, 11:51 AM
Hi Mufaddal,

We suggest that you try the addNodesTo client-side method of the RadTreeView. It is specially optimized for maximum performance and works the following way:

1) The first param should be the node/treeview to add nodes to.
2) The second param is collection of client-side RadTreeNode objects.

Here is sample usage:
var treeView = $find("RadTreeView");
treeView.addNodesTo(treeView, nodes)

All the best,
Genady Sergeev
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
TreeView
Asked by
Mufaddal
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or