Oct 18, 2012, 6:13 AM
[CLOSED] DragDrop in treepanel using TreeViewDragDrop plugin
Hi team,
Q1. I am trying to drag and drop on the treepanel ext.net 2. I have two treepanels source and destination. While dropping a node into destination, It should asks the confirmation saying that "The node you are copying has its children as well. Do you want to copy children also?", if user clicks on yes, then the node should be dropped(it is default behavior I think), otherwise parent node only should be dropped into destination excluding its children. How do I achieve this in BeforeDrop event?
Q2. How do I maintain the same hierarchy in the destination treepanel while dropping? For example, node1, node2 are parent nodes in the left treepanel and they have their own children. It shouldn't allow us to drop node1 and its children into node2 and its children.
Thank you.
Q1. I am trying to drag and drop on the treepanel ext.net 2. I have two treepanels source and destination. While dropping a node into destination, It should asks the confirmation saying that "The node you are copying has its children as well. Do you want to copy children also?", if user clicks on yes, then the node should be dropped(it is default behavior I think), otherwise parent node only should be dropped into destination excluding its children. How do I achieve this in BeforeDrop event?
Q2. How do I maintain the same hierarchy in the destination treepanel while dropping? For example, node1, node2 are parent nodes in the left treepanel and they have their own children. It shouldn't allow us to drop node1 and its children into node2 and its children.
Thank you.
Last edited by Daniil; May 02, 2013 at 10:46 AM.
Reason: [CLOSED]