There was a DragDrop plugin in the grid, and a TreeViewDragDrop tree.
If you want to drag from or to your grid or tree, you enable the plugin. In the case of a grid, it will look something like this:
Ext.create('Ext.grid.Panel', { ... viewConfig: { plugins: { ptype: 'gridviewdragdrop', dragText: 'Drag and drop to reorganize' } }, ... });
After you enable the plugin, you get drag and drop events from a component that you can listen to. To complete the above example.
Ext.create('Ext.grid.Panel', { β¦ viewConfig: { plugins: { ptype: 'gridviewdragdrop', dragText: 'Drag and drop to reorganize' }, listeners: { drop: function(node, data, dropRec, dropPosition) {
You can see this fully working in this example and the corresponding code .
As far as I know, nothing has changed on this front between 4.07 and 4.1;
source share