I found one of this advice you gave in another post, will it work for my case?
Is Flytreeview_DragObject a global object? I couldn't find it's documentation anywhere.
From docs:
Quote:
[boolean] OnDropJavascript ([CFlyTreeNode] target, [event] event)
Fired when a dragObject is dropped onto treeview node (target). Return false to cancel the drop.
To remove node from the source treeview and not let it add to the second treeview you should just modify your code to return false:
Code:
function flyTreeView1_OnDrop(target, event)
{
flytreeview_dragObject.value.remove();
return false;
}
When you call to flytreeview_dragObject.value.remove(); the node is removed from the treeview.