PDA

View Full Version : Row Index of dragged element(data) in Drag and Drop



Sandeesh
30 Jun 2011, 2:32 AM
Hi,
How to get the rowIndex of the Dragged element of grid??

skirtle
2 Jul 2011, 11:43 AM
It depends. It you are dragging multiple rows then you'll need to call indexOf() on the store for each dragged record. However, if you only have single selection then you should be able to use the rowIndex of the drag data. The way you use the rowIndex is the same as we discussed here:

http://www.sencha.com/forum/showthread.php?138615

For a list of all the available drag data properties see the method getDragData() in:

http://dev.sencha.com/deploy/ext-3.4.0/docs/?class=Ext.grid.GridDragZone