getColumnIndex

returns the index of the column with the specified id

number getColumnIndex(id id);
ididthe id of the column
numberthe index of the column

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.

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix easy javascript framework and page of web datagrid product.