Check documentation for the latest version of dhtmlxSuite Tree(TreeGrid) Specific HowTos DHTMLX Docs

Tree(TreeGrid) Specific HowTos

How can I mark an item as a leaf or a branch of the tree?

In the beforeRender event handler you are allowed to mark an item as a leaf or a branch. For this purpose, you should use the set_kids() method. As the input parameter true or false must be specified. true marks an item as a branch, false - as a leaf.

data.set_kids(false);

For more details see the 'Tree/TreeGrid specific' chapter in the 'Dynamic loading' guide.

Back to top