I need to limit the max depth a user can drag and drop a node.
For eg. Taking root level as level 1, i want to limit user to only drop till the 3rd level, in other words, only a tree of 3 levels is allowed.
I tried to change the node values onDropEvent, but it will create a duplicate with the changed valued and end up causing
alot of errors due to duplicate keys.
Kindly advise, thanks!