PDA

View Full Version : dynamic dragtext of treeviewdragdrop



zeeshanjeelani
10 Mar 2013, 4:49 PM
Hi,

I want to dynamically change the dragtext config of treeviewdragdrop plugin
from default to the text of the node being dragged ?

Thanks

mitchellsimoens
12 Mar 2013, 8:27 AM
What have you tried?

zeeshanjeelani
12 Mar 2013, 5:51 PM
here is the code



beforeitemmouseup:function(){ selectedNode=mainTreePanel.getSelectionModel().getLastSelected();var deptname=selectedNode.raw['deptname']; mainTreePanel.getPlugin().dragText=deptname; }