Dhtmlxtree drag drop does not let you drop on top of the ite

tree.insertNewChild(0,“1”,“item1”);

tree.insertNewNext(“1”,“2”,“item2”);

tree.insertNewNext(“2”,“3”,“item3”);



I have this dhtmlxtree with only 3 sibling items. Somehow in my code and in any of the samples you can not drag and drop item to the top. You can drag top most item down but you can not drag item to topmost. I even created an offset for top item and it still doesn’t let me do that. Is there any way to accomplish this?





By default , tree uses “child” drop mode, which mean droped item will become a child of something. To put item on top of hierarchy - just drop item on empty space below the last item�Pro version supports complex drop mode, which allow more combination ( tree.setDragBehavior(“complex”) )