I have a tree panel with local data like
root: {
text: 'root',
children: [
{ text: "child"
leaf: true
}]
....
}
first: I want to delete root of tree. I try below code but that not working for root. However that work for another node (node.remove(true)
)
tree.getRootNode().remove(true);
second: I want to remove all tree (i think this like remove root?)
How can i do that thanks :)