Docs
API
  • removeColumn(id: String)

    Remove column by column id.
    If id of column was set then it is possible to remove it over id.
    If id of column was not set then it will be auto-generated but in this case it will be needed to get column id.

    Example

    
    grid.removeColumn('age');
    

    removeColumn(dataIndex: String)

    Remove column by data index(key).
    First grid searches column in 'center' side than in 'left' than in 'right'.

    Example

    
    grid.removeColumn('age');
    

    removeColumn(dataIndex: String, side: String)

    Remove column by data index(key) in side.
    Possible side value: 'left', 'center', 'right'.

    Example: Remove column from left side

    
    grid.removeColumn('age', 'left');
    

    removeColumn(orderIndex: Number)

    Remove column at order index in center side of grid.

    Example: Removing column to left side at 0 order index

    
    grid.removeColumn(0);
    

    removeColumn(orderIndex: Number, side: String)

    Remove column at order index in side of grid.
    Possible side value: 'left', 'center', 'right'.

    Example: Removing column to left side at 0 order index

    
    grid.removeColumn(1, 'left');
    

    removeColumn(column: Object)

    Remove column by link on column.

    Example:

    
    var column = grid.getColumnById('age');
    
    grid.removeColumn(column);