Categories | Question details Back To List | ||
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...... Answer posted by Alex (support) on Sep 08, 2009 03:27 you can use getSubItems method http://www.dhtmlx.com/dhxdocs/doku.php?id=dhtmlxtree:api_method_dhtmlxtreeobject_getsubitems Answer posted on Sep 08, 2009 03:32 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); } } |