Documentation

getColumnIndex

returns the index of the column with the specified id

number getColumnIndex(id id);

Parameters

ididthe id of the column

Returns

numberthe index of the column

See also

Example

//gets the index of the 'rank' column
var ind = grid.getColumnIndex("rank");

Details

Index represents the order of columns in the table structure.
Zero-based numbering, i.e. the index of the first column == 0.

Back to top