COPY instead of MOVE once item in dhtmlxtree Dragged

Hi,
In dhtmlxTree, if we drag items from one tree to another tree,it actually moves the item to another tree. Is there any option to customize this behaviour so that dragging will only COPY the item to other tree instead of MOVE?
If yes how can this be implemented?

Hi
You just need to use method enableMercyDrag()
docs.dhtmlx.com/api__dhtmlxtree_ … ydrag.html

Hi Darya,
In which file I can find this property or where can I update this please?I read this is available in PRO only but I am using STD.

You can use onDrag event handler to catch the dragged node id, and via method addNewItem copy this node to another tree.

Thanks it worked.
Now I want to call the Spring controller method while dragging the element . Is that possible to call Spring MVC Controller from inside onDrop event handler?

tree.attachEvent(“onDrop”, function(sId, tId, id, sObject, tObject){
// AJAX CALL HERE??
});

You can make ajax calls with help of dhtmlxAjax

tree.attachEvent(“onDrop”, function(sId, tId, id, sObject, tObject){
dhtmlxAjax.get("/some/controller");
});

docs.dhtmlx.com/api__refs__dhtmlxajax.html

If you need to use value returned from controller to affect result of event ( block it or allow ) - use sync version of the same API - dhtmlxAjax.getSync

Thank You !