Required library edition:
Required library file: dhtmlxdataview.js
Returns index of item with specified ID
var index = view.indexById(id);