Home - Forums-.NET - FlyTreeView (ASP.NET) - Copy parent node without children

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Copy parent node without children
Link Posted: 22-Jun-2007 10:28
Hi,

I am using two different trees and am trying to copy a parent node with children from one tree to another one. Unfortunately, it copies all the children as well, which I don't want. What do I need to do to only have the parent node be copied over to the other tree?

Thanks
Link Posted: 22-Jun-2007 22:16
You can use node.clearChildNodes() in order to remove all the child nodes of a copied node.
Link Posted: 05-Jul-2007 09:30
At what point would I call node.clearChildNodes()? Before the drop, after the drop, etc.

Thanks.
Link Posted: 05-Jul-2007 18:26
Current implementation of clearChildNodes function requires node to be in treeview. So the only way is to clear nodes after node was dropped onto target.