Check documentation for the latest version 6.0 of dhtmlxSuite getParentId DHTMLX Docs

getParentId

returns the id of the item's parent

string|number getParentId(string|number itemId);

Parameters

itemIdstring|numberthe item's id

Returns

string|numberthe parent's id

Example

var parentId = myMenu.getParentId(itemId);

Back to top