Search code examples
extjsgridextjs4

ExtJs4 - What is the equivalent to the grid ColumnModel?


What is the equivalent to the ExtJs3 Ext.grid.ColumnModel in ExtJs4?

What I want to do is hide a column, I did something like below in ExtJs3:

grid.colModel.setHidden(1, true);

Solution

  • You can hide/show column using setVisible method of Ext.grid.column.Column:

    grid.columns[1].setVisible(false);