On the following Dojo example
you will find a working sample, which demonstrates how you can achieve the desired drag and drop between two TreeView widgets.
You will notice that in the above example there is a e.PreventDefault() added in order to prevent the default event action.
The other difference is that in order to get the node I have used the .toJSON()
method returns an ObservableObject
In addition to the above, the TreeView append() method accepts specific parameters, which you can find explained in details here
. The second parameter is passed as an element:
destinationNode = $(e.destinationNode);
I hope this helps you to resolve your issue. In case you have any other related questions, please do not hesitate to contact us.