Home - Forums-.NET - FlyTreeView (ASP.NET) - Restrict Drag and Drop with DragAcceptNames on FlyNodeType

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

Restrict Drag and Drop with DragAcceptNames on FlyNodeType
Link Posted: 02-Feb-2007 05:46
Hi - We have two tree views on a page with the same hierarchical structure. We are able to drag and drop nodes from one to the other, but we want to restrict which node types can be dropped onto which nodes. We have tried this using DragDropAcceptNames on the FlyNodeType tags, but this does suddenly restricted us from dropping any nodes onto the tree. What values should we have in the DragDropName and DragDropAcceptNames attributes of the various nodes? Our code is listed below. Thanks for the help. Paul ==========================================
Link Posted: 02-Feb-2007 05:54
Never mind.  I realized the problem was that we had a static root node defined on the tree we were dropping nodes onto.  The static root node needed to have DragDropAcceptNames defined on it.  I am curious why it was not affected by our NodeType definitions.

Thanks,
Paul
Link Posted: 02-Feb-2007 06:25
Actually the last NodeType is applied to your root node.
This is because AutoApplyAtLeafs has a higher priority than AutoApplyAtLevels.