Restricting the child of parent to drop in other parent nodes of tree
I have a treepanel with nested parents and child inside it. I am using treeviewdragdrop plug-in to re-arrange the nodes.
My requirement is to restrict the child of one parent should not be dropped in other parent.
Can anybody suggest me how to achieve?
Listen to the plug-in's 'beforedrop' event to do the evaluation. If the 'test' fails return false from the event to stop it. See the API docs for more info on the event.
Tags for this Thread