var
tree = $find(
this
.treeviewId);
var
count = tree.get_nodes().get_count();
for
(
var
i = 0; i < count; i++) {
tree.get_nodes().remove(tree.get_nodes().getNode(0));
}
This is not working when nodes has some children... Wouldn't be simpler if there was a clear() function ?
--> Is this the Telerik HTML Editor ??? I can't format the code there, he's adding always linebreaks