PDA

View Full Version : how to use draggroup and dropgroup of ext.grid.panel for more than one group?



Pranoti
4 Dec 2011, 2:52 AM
I am using dnd_grid_to_grid.js example. In that drag and drop from one grid to another is possible. I want to male drag and drop within the same grid also.
Ple5asseanotheranother anotherPlease provide the code for the same

Thax,
Pranoti

skirtle
4 Dec 2011, 10:52 AM
See the example here for drag/drop within a single grid:

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.plugin.DragDrop

alane
27 Sep 2012, 3:05 PM
Ok, I think what skirtle was asking was this:

You have two grids. You show in the examples how to drag between these two grids. You also show how to drag within a single grid. But what if you want to set up configurations for this:
Grid A: Can drag rows to Grid B
Can't drag and drop inside itself
Grid B: Can drag rows to Grid A
Can drag and drop inside itself.

I know you can set the drag and drop groups on Grid A to:

dragGroup: 'GridA',
dropGroup: 'GridB'
And I know if I set Grid B to:


dragGroup: 'GridB',
dropGroup: 'GridB'
it'll drag and drop inside itself.
So I think if I want to let Grid B drop back into Grid A without allowing Grid A to drag inside itself, I need to add a second group to Grid B's drop group

Am I off base in that assumption? If not, how do I assign multiple groups?