PDA

View Full Version : [OPEN] Drag and Recursively copy between Two-Trees



revuze
26 May 2014, 12:04 AM
Hello,
In my situation, I have 2 trees - source-tree and target-tree

I would like to know if there is an option to Drag & Drop a sub-tree with a full copy, so target tree dropped sub-tree will be seen with a "dirty" sign.

In my code, using "copy: true" doesn't solve issue.

In any case, I don't know why, I cannot successfully drag & drop between two-trees with a full copy instead of reference.

Actually, what I thought is to implement full recursive copy of in "drop" event.

Does anyone familiar with this issue? any tips?

mitchellsimoens
27 May 2014, 12:39 PM
The issue is the record.copy call within the Ext.tree.ViewDropZone does not pass the deep argument to copy the children of the node. I'm going to move this to the bug forum to open as an improvement.

revuze
27 May 2014, 10:52 PM
Thank you for your reply.