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);

Parameters

IDstring|numberID of the item in question

Returns

numberthe index of the item with the specified ID

Example

var index = myList.indexById(id);

Back to top