Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Peter Bot on Jun 02, 2008 15:21
open dhtmlx forum
Drag and drop item to the highest level

Already build the db-driven drag and drop between nodes. How can i move an item to the highest level? (ParentID = 0)
Answer posted by Support on Jun 03, 2008 01:59
If you drag node on empty space of grid ( or on grid headers zone ) - it will be dropped as top level item.
Also if you set drag behavior to "sibling" or "complex" - node can be draged on top as sibling of any other top level items.

In case of API operations - node can be moved on top level as
    grid.moveRowTo(item_id,0,"move","child");