|
Title: Disallow Drag and Drop between the same tree Post by: leela on July 23, 2014, 08:15:49 AM Hi,
I have 2 trees, The user should be able to drag and drop the elements from the left tree to the right tree. But disallow drag and drop between the left tree. Is there a way I can find , if both source and target belong to the same tree in any of the events (onDragOver, onBeforeDrop) When user tries to drag something from my left tree with in left tree, I should be able to recognize it and prevent it. Please advise. Title: Re: Disallow Drag and Drop between the same tree Post by: stworthy on July 23, 2014, 05:23:53 PM Return false in the 'onDragEnter' event and the target node will not be dropped.
Code: $('#leftTree').tree({ |