PDA

View Full Version : TreePanel , getting dragged item



velk
9 Apr 2010, 5:28 AM
Hello,

I m currently trying to implement something based on the two threes sample ( here (http://www.extjs.com/deploy/ext/examples/tree/two-trees.html))

the drag / drag works well, but how to get the content of the dragged node after the "enddrag" event



tree.on('enddrag', EndDrag, tree );

function EndDrag(node,e){

alert("href : " + node.href + " id : " + node.id );
}



The event system is ok , i get my alert after the drag/drop , but this code output : href : undefined - id : ext-comp-1011

whatever I drag , i always get the same output

I also tried node.text , but it s also "undefined"