returns the index of the column with the specified id

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


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


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
If you have not checked yet, be sure to visit site of our main product Webix javascript ui library and page of tree table widget product.