Hide Complete Tree Level


I would like to hide all child nodes (level=“2”) in a tree.
Can you help with this please?


Unfortunately there is no such logic in the dhtmlxTree to hiding/showing the tree nodes.
I can suggest you filter your tree, so you will “unfilter” the nodes for the level two and leave all other nodes.
Something like: