DHTMLX TREE: How to get child nodes of a particular node?

DHTMLX TREE: How to get child nodes of a particular node?



tree.hasChildren(Id); gives the number of child nodes

how to get the child node ids?



tree.getAllSubItems(Id)// gives all child nodes and sub child nodes…

need only child nodes…

you can use getSubItems method dhtmlx.com/dhxdocs/doku.php? … etsubitems

i have tried the other way it worked fine…

var children=tree.hasChildren(Id);
        if(children>0)
        {
            for (i=0;i<children;i++)
            {
                var childid=tree.getChildItemIdByIndex(Id,i);               
            }
        }