View Full Version : Find drag and drops original drag location

17 Aug 2012, 8:07 AM
I have a grid panel that is dragging rows to another grid panel with

drop: function(node, data, dropRec, dropPosition, record) { console.log(node) ... etc }

I need to get the originating panel id from the drag. I am sure it inside one of those but i have been looking and i can't seem to find this.

17 Aug 2012, 6:01 PM
See if this works for you. I realize it's just from GridA to GridA, but the drop event's params should work for a second destination grid, too, I believe.

Ext.create('Ext.data.Store', {
data: [["Lisa"], ["Bart"], ["Homer"], ["Marge"]],
proxy: {
type: 'memory',
reader: 'array'

Ext.create('Ext.grid.Panel', {
store: 'simpsonsStore',
columns: [
{header: 'Name', dataIndex: 'name', flex: true}
viewConfig: {
plugins: {
ptype: 'gridviewdragdrop',
dragText: 'Drag and drop to reorganize'
, listeners: {
drop: function(node, data, dropRec, dropPosition) {
height: 200,
width: 400,
renderTo: Ext.getBody()

20 Aug 2012, 1:47 PM
yep, thats it. Thank you!