View Full Version : Ext.tree.ViewDDPlugin set COPY property

29 Jul 2011, 12:08 AM
Hello everyone,

I use Ext.tree.ViewDDPlugin in my Ext.tree.Panel like this:

var treePanel = Ext.create('Ext.tree.Panel', {
id: 'tree-panel',
enableDragDrop: true,
ddGroup: 'TreeDD',
ddText : 'Place this row.',
copy: true,
layout: 'fit',
rootVisible: false,
store: treeStore,
root: {
nodeType: 'async',
id: 'rootId',
allowCopy: true,
viewConfig: {
enableDrop: false,
plugins: {
ptype: 'treeviewdragdrop',
appendOnly: true,
dragGroup: 'TreeDD',
allowCopy: true,
copy: true

I want to drag leaf nodes from tree to grid and leaf nodes should stay in tree. But now they are removes.

What should I do and where I can set COPY property to true?