Wijmo UI for the Web
indexOf Method
wijmo.grid Namespace > cellInfoOrderedCollection type : indexOf Method
A zero-based cellIndex component of the wijmo.grid.cellInfo object to return the index of.
A zero-based rowIndex component of the wijmo.grid.cellInfo object to return the index of.
Returns the zero-based index of specified collection item.
Syntax
var instance = new wijmo.grid.cellInfoOrderedCollection();
var value; // Type: number

// Parameters
var cellIndex; // Type:  number
var rowIndex; // Type:  number

value = instance.indexOf(cellIndex, rowIndex);
function indexOf( 
   cellIndex : number,
   rowIndex : number
) : number;

Parameters

cellIndex
A zero-based cellIndex component of the wijmo.grid.cellInfo object to return the index of.
rowIndex
A zero-based rowIndex component of the wijmo.grid.cellInfo object to return the index of.

Return Value

The zero-based index of the specified object, or -1 if the specified object is not a member of the collection.
Example
var index = collection.indexOf(0, 0);
See Also

Reference

cellInfoOrderedCollection type