PDA

View Full Version : Problem with event.getTarget()



sarabjeetd
6 Apr 2012, 2:30 PM
I am trying to find out what is the right value to pass into to e.getTarget(param) call when I drop the dragged item on to a panel.
I am using Ext JS Version Number: 4.1.0 Beta 2a



grid.dropZone = Ext.create('Ext.dd.DropZone', v.el, {
// If the mouse is over a target node, return that node. This is
// provided as the "target" parameter in all "onNodeXXXX" node event handling functions
getTargetFromEvent: function(e) {
debugger;
var a = e.getTarget('x-border-box.x-quirks.x-viewport');
DiagApp.logger.debug("getTargetFromEvent(): target" + a);
return a;
},

scottmartin
6 Apr 2012, 3:39 PM
Have you seen this example on dropping items onto a panel?
http://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/dd/dnd_grid_to_formpanel.html

Regards,
Scott.