Docs
API
  • showColumn(dataIndex: String)

    Shows column if it was hidden before or has property hidden: true.
    dataIndex is column index of data.

    Example

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

    showColumn(dataIndexes: Array)

    Shows columns if it was hidden before or has property hidden: true.
    dataIndexes are column index of data.

    Example

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

    showColumn(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');
    

    showColumn(orderIndex: Number)


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

    Example

    
    grid.showColumn(0);
    

    showColumn(side: String, dataIndex: String)


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

    Example: show locked column

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

    Example: show right locked column

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

    See also

    Method hideColumn
    Sample on JSFiddle