PDA

View Full Version : Restricting the child of parent to drop in other parent nodes of tree



url
3 May 2013, 5:42 AM
Hi All,

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?
Regards URL

chamacs
3 May 2013, 11:04 AM
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.