Well in ExtJS 3 i used the following code:
grid.getColumnModel().findColumnIndex(\"Tasks\")
I tried finding it on the api docs, but no luck...so how
function getColumnIndex(grid, dataIndex) { gridDataIndices = Ext.Array.pluck(grid.columns, 'dataIndex'); return Ext.Array.indexOf(gridDataIndices, desireDataIndex); }
answered in sencha forums