Posted 15 October 2017, 12:51 am EST
Copy item from one node to another in the same tree.
Forums Home / Wijmo / General Discussion
Posted by: phupham0310 on 15 October 2017, 12:51 am EST
Posted 15 October 2017, 12:51 am EST
Copy item from one node to another in the same tree.
Posted 15 October 2017, 5:46 pm EST
Hi ,
Copying item from one Node to another would involve add a Tree Node Dynamically,we are sorry but this feature is currently not supported . I have added you as a correspondent to the enhancement request 260895 and you will be notified in this feature gets implemented.
Thanks,
Abhishek
Posted 5 January 2018, 11:09 pm EST
Hi,
In build 384, we added an addChildNode method to the TreeView and TreeNode classes that allows you to add child nodes. For example:
var newItem = { header: 'my new item' },
node = theTree.selectedNode;
if (node) {
theTree.selectedNode = node.addChildNode(index, newItem);
} else {
theTree.selectedNode = theTree.addChildNode(index, newItem);
}
In previous versions, adding nodes required changing the TreeView’s itemsSource array and calling theTree.loadTree method. The new approach is much easier.
If you would like to verify the issue, you may download the pre-release build for testing purpose.
http://prerelease.componentone.com/wijmo5/
This build is not recommended to use for production since this is under QA process for next release.
~Manish