onBeforeDestroy : function (grid)
{
// if we previously registered with the scroll manager, unregister
// it (if we don't it will lead to problems in IE)
Ext.dd.ScrollManager.unregister(grid.getView().getEditorParent());
}
});

and I put it in file GridDragDropRowOrder.js
under directory localhost\ext-4.0.7\examples\ux\dd\GridDragDropRowOrder.js

for example : When I drag the row with the rulenumber column 3 into row with rulenumber 7 ,
I want the rulenumber 3 to change to 7 and the 7 to become 3. all the rest stay with their values.

Is it compicated or can be simply be defined in the grid panel config ?

Thanks

friend

12 Apr 2012, 10:59 AM

Take a look at the DragDrop plugin events beforedrop (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.plugin.DragDrop-event-beforedrop)and drop (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.plugin.DragDrop-event-drop), where these events are actually fired through the Grid View.