Only all drop on "folder" type, not leaf

All,

Is there a way to only allow a user to drag a “leaf” type of node (e.g. the icon looks like a text or word doc) to a “folder” type of node (e.g. looks like a windows folder)? Also, can drag and drop be made to reorder the “leaf” types instead of make a “leaf” a “folder” type of node?

Hello,

Is there a way to only allow a user to drag a “leaf” type of node (e.g. the icon looks like a text or word doc) to a “folder” type of node (e.g. looks like a windows folder)?

You may control drag-n-drop using onDranIn (or onDrag) event. If the event doesn’t return true, the drag-n-drop is canceled:

docs.dhtmlx.com/doku.php?id=dhtm … t_ondragin
docs.dhtmlx.com/doku.php?id=dhtm … ent_ondrag

Also, can drag and drop be made to reorder the “leaf” types instead of make a “leaf” a “folder” type of node?

You may use sibling drag-n-drop mode (pro edition only):
dhtmlx.com/docs/products/dht … bling.html