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