PDA

View Full Version : how to get the rowid in a grid that an item is dropped onto?



sj137
7 Dec 2007, 7:31 AM
Hi all,

is it possible to get the rowid that a node (from a tree) is dropped onto...?

I've setup a droptarget on my grid, like so:




var drop = new Ext.dd.DropTarget(patternGrid.container, {
ddGroup : 'TreeDD',
notifyDrop : function(dd, e, data) {



but i can't find the targt rowid from dd, e, nor data...?

(i saw in someone else's example that you can get the row id using :
var cindex = dd.getDragData(e).rowIndex;
but this doesn't work if the drop item comes from a tree....
)