PDA

View Full Version : Multi select Tree Drag Drop ExtJs 4.2



MMT
10 Aug 2014, 9:26 PM
Hi,

I need to implement Multi-select Tree drag drop, same as Multi-Select Tree & Drag Drop (http://www.sencha.com/forum/showthread.php?28115-Multiselect-Tree-amp-Drag-and-Drop)

49933


By adding


selType : 'treemodel',
selModel : {
mode : 'MULTI'
},
viewConfig : {
plugins : {
ptype : 'treeviewdragdrop',
ddGroup : 'treeddgroup',
displayField : 'name'
},
copy : true
}

code it allows multiple selection, but doesn't show selected not icon while dragging.
In Ext 3.x plugin, proxy ghost is updated

this.proxy.ghost.dom.appendChild(data.ddel);
But this might be changed in Ext 4.x implementation.

Any specific override is required to achieve this ?

slemmon
18 Aug 2014, 11:21 PM
You might check out the following example for some ideas on how to set the drag proxy content when dragging:
http://dev.sencha.com/ext/5.0.1/examples/organizer/organizer.html
http://dev.sencha.com/ext/5.0.1/examples/dd/dragdropzones.html