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…
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);
}
}