Wijmo UI for the Web
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
Javascript (Usage) 
var instance = new wijmo.grid.cellInfoOrderedCollection();
var value; // Type: number

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

value = instance.indexOf(cellIndex, rowIndex);
Javascript (Specification) 
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);
Browser Compatibility
7
5
5

See Also

Reference

cellInfoOrderedCollection type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.