PDA

View Full Version : How to get treenode as target of dragzone



TheDude55
3 Mar 2011, 7:14 AM
Hi. I have a treepanel for which i've created a dragzone.
I would like to get the treenode text in the getDragData function of the dragzone from e



getDragData: function(e) {
var sourceEl = e.getTarget(); //html element
var nodesExtID = Ext.get(sourceEl).id;
var nodeText = Ext.getCmp(nodesExtID).text;


This is a very clueless attempt - anybody got any ideas?