ExtJs4 - What is the equivalent to the grid ColumnModel?

后端 未结 4 2038
忘了有多久
忘了有多久 2021-01-12 02:51

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:

4条回答
  •  粉色の甜心
    2021-01-12 03:14

    The other answers can be problematic if your column indexes change.

    Here is another solution:

    Set itemId on the column definition:

    {
            itemId: 'myActionColumn',
            xtype: 'actioncolumn',
            width: 50,
            items: [ ...
    }
    

    Then to hide:

    grid.down('#myActionColumn').hide();
    

提交回复
热议问题