Categories | Question details Back To List | ||
get parent id Hi, its seems a little unbelievable that i couldn't find anything in your documentation relating to getting the parent id of a node in a tree. its seems very limited in supporting the structure of the tree. for example i haven't found any methods in your documentation relating to the children of a node either. are these basic features not available or is your documentation very limited? thanks Answer posted by Support on Dec 17, 2007 05:54 There is nothing specific in getting parent or child items, actually both method specified in API http://beta.dhtmlx.com/docs/products/dhtmlxTree/doc/alpha.html get parent tree.getParentId(... check child items tree.hasChildren(... get IDs of direct child items tree.getSubItems(... get IDs of all child items tree.getAllSubItems(... get child by position tree.getItemIdByIndex(.... |