jQuery UI Widgets › Forums › Navigation › Tree › How to get items (child nodes) of Jqwidgets.TreeItem
This topic contains 3 replies, has 2 voices, and was last updated by Martin 2 years, 8 months ago.
let qNode = this.objTree.getSelectedItem();
qNode has child nodes. i need to perform copy paste.
but if copy and paste i donot get the child objects.
Please help me get the items of qNode.
You can get the tree items by getItems method and check which of them
are having parentId equal to the selected item id.
Here is an Example.
Copy B from A to A1.
B of A1 has reference to B of A.
How do i clone a node?
When you are copying a node to another one,
I would suggest you to use the addTo method to create a new one with the same data,
so it doesn’t have a reference to the original one.
You can see in this Example how addTo is used.
You must be logged in to reply to this topic.