Check documentation for the latest version 6.0 of dhtmlxSuite getColIndexById DHTMLX Docs

getColIndexById

gets column index by column id

number getColIndexById(number id);

Parameters

idnumbercolumn id

Returns

numberthe index of a column

Example

//get index of the column with id "col1"
var colIndex=myGrid.getColIndexById("col1");

Back to top