а

Treeview drag to HTML Target


#1

Hello,

i want to drag out an element from a treeview to an div container. Is there an example for this?

I found this:
https://dhtmlx.com/docs/products/dhtmlxTree/samples/05_drag_n_drop/08_pro_drag_out.html?

But the lines:
myTree.setDragHandler(maf);
myTree.dragger.addDragLanding(sinput, new s_control);

break off with error.

The elements dhtmlXTreeObject and TreeView seems to be different.

I use the latest version 5.2!

regards
stephan


#2

You’re right dhtmlxtree and dhtmlxTreeview are the different components and have different API.
You need to use the dhtmlxTree instead of dhtmlxTreeView.