PDA

View Full Version : Tree to form drag and drop



rhytha268
28 Jul 2013, 9:26 AM
Hi,
First time using drag and drop, i do not have more idea about drag and drop.
I have a view port where west region having tree and central region having a form .
I tried to implement drag and drop from tree to from.

My code for drag and drop plugins in tree view is -

viewConfig: {
plugins: {
ddGroup: 'dropGroup1',
ptype: 'treeviewdragdrop',
enableDrag: true,
enableDrop: false
}
}

And inside form panel i set same drag and drop group-

ddGroup: 'dropGroup1'

My issue is form panel don't allow to drop. Please let me know where i'm making mistake and how i can fix it?



45077

slemmon
30 Jul 2013, 4:51 PM
You might check out this example:
http://docs.sencha.com/extjs/4.2.1/extjs-build/examples/build/KitchenSink/ext-theme-neptune/#dd-grid-to-form

In the example you see the grid view plugin of "gridviewdragdrop". Since this is a tree you'll instead use "treeviewdragdrop", but otherwise it should be the same or at the very least a great place to start.
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.tree.plugin.TreeViewDragDrop