DHTMLX Docs & Samples Explorer

getParentId(itemId)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxmenu.js

returns parent's id

  • itemId - the item's id
    var parentId = menu.getParentId(itemId);