PDA

View Full Version : tree panel drop node in a leaf node



midodjo
11 Nov 2012, 4:16 PM
Can i use the operation of drag and drop in a tree to affect value of leaf node:
i have two tree .i drag and drop node from tree to another.I want that if i drag a node (Node1) from the first tree to a leaf node(Node2 with empty children) in the second tree the Node2 is remplaced by the Node1
the Node1 has a value "1" , i drag a Node2 with value "5"===>value of Node1="5"?
I need your help please :)

dawesi
12 Nov 2012, 9:47 AM
read up on drag and drop:

http://docs.sencha.com/ext-js/4-1/#!/api/Ext.dd.DropZone

also here:
http://docs.sencha.com/ext-js/4-1/#!/example/dd/dragdropzones.html