I have an application that needs to support dragging from one TreeView onto another, where items are only copied, not moved.
I can achieve this using the DragStart event on the destination tree, to prevent any dragging from it. I can then identify what node has been dragged to the other tree, cancel the operation with PreventDefault, and then append the node manually (and also update the back0end database). What I can't work out how to stop, is nodes from the source tree being dragged onto other nodes in the source tree (which I want as read only).
This is because the drop event always fires from the source tree, and to find out more about the destination node (i.e. the object ID it was created with etc..) requires a call involving the TreeView's name
e.g.:-
alert($(
"#Treeview"
).getKendoTreeView().dataItem(e.dropTarget).id);
As I have two TreeViews on the page, how do identify which treeview the droptarget is on (or even better, just allow the source tree to allow dragging and not dropping?
Thanks