DhtmlxTreeGrid DragnDrop or DragnCopy using CTRL-Key

Hi,



we are using DhtmlxTreeGrid Professional. While dragging a Tree Item and holding down the CTRL-Key we want to Copy the Item instead of moving it.



there is a solution for DhtmlxTree (dhtmlx.com/docs/products/kb/ … yes&s=ctrl tree).



Is there an equal solution when using DhtmlxTreeGrid ?



Similar changes you should do in the dhtmlxgrid_drag.js file from the dhtmlxGrid package.
Line
var text=this.callEvent(“onBeforeDrag”,[htmlObject.parentNode.idd,htmlObject._cellIndex]);
should be replaces with:
var text=this.callEvent(“onBeforeDrag”,[htmlObject.parentNode.idd,htmlObject._cellIndex,(e||event)]);

Now during treeGrid’s init, the next code can be used:
mygrid.attachEvent(“onBeforeDrag”,function(id,ind,ev){
this.enableMercyDrag(ev.ctrlKey)
return true;
});