View Full Version : Drag and Drop: Dropping a Panel B within a Panel A and Dropping a Panel C within B

15 Sep 2010, 3:15 PM

I am trying to work on a simple example of dragging a panel(lets say B) and dropping it within a panel (A) and then dropping another panel (C) within panel B. I am achieving this by overriding the methods in class DropZone.js but when I am dropping panel C within panel B the onNodeDrop method in DropZone is being called twice. I was able to figure out that onNodeDrop is being called for all the panels configured to be drop zones and are the up the parent hierarchy. I am not sure but I think this is event bubbling or capturing and I tried to use stopPropagation, stopEvent but nothing was able to stop this behavior. Any thoughts would be greatly appreciated.
Thank you