Check documentation for the latest version of dhtmlxSuite indexById DHTMLX Docs

indexById

returns the index of the item with the specified ID

number indexById(string|number ID);
IDstring|numberID of the item in question
numberthe index of the item with the specified ID

Example

var index = myList.indexById(id);

Back to top