View Full Version : One Way Drag & Drop

26 Sep 2012, 10:54 PM
Good day all!!!

I have seen the example on dragging and dropping from one grid to another, and I can make my own and make it work. But for mine I would like to implement the following:

Dragging must not remove/delete row from the grid (Now know that I have to set 'copy: true', others say 'allowCopy: true')
Dragging and dropping should be one way. User should only be able to drag from grid1 to grid2 and not the other way round.
Grid2 has fields that are not in Grid1. How do I set the default values for these fields so that they show when a row is drop in the grid.
And finally, in the example the drop listener in view. How would I referrence this event from my controller.

Your help is appreciated... If a code example is available; thank very much

28 Sep 2012, 12:02 PM
If you don't want one grid to be able to be dragged from, set enableDrag to false on the plugin.

This is probably the cause of the confusion:

copy: view.copy || (view.allowCopy && e.ctrlKey)

30 Sep 2012, 12:24 AM
Thanx a lot mitchellsimoens (http://www.sencha.com/forum/member.php?22216-mitchellsimoens). That answers 1 and 2. I have those working the way I want.