Check documentation for the latest version of dhtmlxSuite getParentId DHTMLX Docs

getParentId

returns the id of the item's parent

string|number getParentId(string|number itemId);
itemIdstring|numberthe item's id
string|numberthe parent's id

Example

var parentId = myMenu.getParentId(itemId);

Back to top