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

fastest way to remove nodes on the client side

1 Answer 103 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
mirang
Top achievements
Rank 1
mirang asked on 03 May 2012, 04:31 PM
what is the fastest way to remove nodes on the client side? I am using 
node.get_parent().get_nodes().removeAt(0)
to get this functionality, but it looks to take comparatively more time, like to remove 200 nodes it takes around 2-3 seconds. Is there any other efficient method/way to achieve this.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 04 May 2012, 12:13 PM
Hi Mirang,

 
Unfortunately there is no such inbuilt method and in browsers with slower javascript handling this behavior takes some time. If you want to remove all the child nodes you can use "clear()" function of NodeCollection object that is executed immediately.

Hope this will be helpful.

All the best,
Plamen Zdravkov
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
mirang
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or