PDA

View Full Version : use metadata to detect where dragdata is coming from



rich71
3 Aug 2010, 10:48 PM
Hello,
How can I use metadata to detect from wich grid the data is coming from,please




,onRender:function() {
// call parent
app.myForm.superclass.onRender.apply(this, arguments);

var DropTargetEl = this.body.dom;
var pan = this;
var DropTarget = new Ext.dd.DropTarget(DropTargetEl, {
ddGroup : 'grGebruikerDDGroep',
notifyEnter : function(ddSource, e, data) {

pan.body.stopFx();
pan.body.highlight();
},
notifyDrop : function(ddSource, e, data){

var selectedRecord = ddSource.dragData.selections[0];

pan.update(selectedRecord);

return(true);
}
});

}
thanks, Richard