Docs
API
  • hideColumn(dataIndex: String)

    Hide column.
    dataIndex is column index of data.

    Example

    
    new FancyGrid({
      ...
      columns: [{
        index: 'name',
    	title: 'Name',
      ...
    
    grid.hideColumn('name');
    

    hideColumn(dataIndexes: Array)


    Hide columns.
    dataIndexes are columns indexes of data.

    Example

    
    new FancyGrid({
      ...
      columns: [{
        index: 'name',
    	title: 'Name',
      },{
        index: 'company',
    	title: 'Company'
      ...
    
    grid.hideColumn(['name', 'company']);
    

    hideColumn(id: String)


    Hide column by it's id. id is column id.
    Every column has id, if it was not provided on start than grid will auto generate it by self.
    Id of column is not the same as data index.

    Example

    
    grid.hideColumn('age');
    

    hideColumn(orderIndex: Number)


    Hide column by it's order in columns. orderIndex is order in columns.

    Example

    
    grid.hideColumn(0);
    

    hideColumn(side: String, dataIndex: String)


    To hide column in locked sides. It requires to define param side.
    Possible values: 'left', 'center', 'right'

    Example: hide locked column

    
    grid.hideColumn('left', 'name');
    

    Example: hide right locked column

    
    grid.hideColumn('right', 'name');
    

    See also

    Method showColumn
    Sample on JSFiddle