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

2 posts, 0 answers
  1. Mufaddal
    Mufaddal avatar
    1 posts
    Member since:
    Jun 2011

    Posted 15 May 2013 Link to this post

    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...???
  2. Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 21 May 2013 Link to this post

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