Limit depth of tree

Is there a way to limit the depth of the tree, even when using drag-n-drop? I want the tree to have no more than 5 levels.

Thanks.

dhtmlxTree doesn’t have such limit

Could I make an enhancement request for this feature?

You can use drag and drop events to disable dropping item on level bigger that 5. Please find more information here
docs.dhtmlx.com/doku.php?id=dhtm … p_handling
docs.dhtmlx.com/doku.php?id=dhtm … s_handling