Araberen
12 Dec 2011, 1:21 AM
Hi,
Everything is in the title. My viewConfig is very simple:
viewConfig: {
plugins: {
ptype: 'gridviewdragdrop'
}
}
This works! But drop is always enabled. So, on the second grid, I add:
enableDrop:false
in the plugins section.
The idea would be to reactivate it after a click on a button (or any other event).
I tried:
myGrid.getView().plugins[0].dragZone.unlock();
myGrid.getView().plugins[0].enable();
myGrid.getPlugin( ??? ) ...
Any idea how to do that?
Everything is in the title. My viewConfig is very simple:
viewConfig: {
plugins: {
ptype: 'gridviewdragdrop'
}
}
This works! But drop is always enabled. So, on the second grid, I add:
enableDrop:false
in the plugins section.
The idea would be to reactivate it after a click on a button (or any other event).
I tried:
myGrid.getView().plugins[0].dragZone.unlock();
myGrid.getView().plugins[0].enable();
myGrid.getPlugin( ??? ) ...
Any idea how to do that?