PDA

View Full Version : Why do onBeforeDrag not work?



Robert82
23 Feb 2011, 7:07 AM
Hello,

I've a panel which should be act as a dragZone. So, I added the dragZone after rendering the panel.
I cannot reach onBeforeDrag with firebug, but getDragData works.



var dragZone = new Ext.dd.DragZone(panel.body,{
getDragData: function(e){
// firebug reach this point
},
onBeforeDrag: function(data, e){
// this point is never reached
console.info("data: "+data+" und event: "+e);
return true;
},
getRepairXY: function() {
return this.dragData.repairXY;
}
});
Can anyone help me?
Regards


EDIT: Problem solved.