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







There is nothing specific in getting parent or child items, actually both method specified in API
    beta.dhtmlx.com/docs/products/dh … 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(…