showColumnReturns: grid

Show hidden column.

Parameters

NameTypeDescription
field {string} The name of the field bound to the column.

Examples

sample

    
 <button id="btnShowColumn" class="gj-button-md">Show Column</button>
 <br/><br/>
 <table id="grid"></table>
 <script>
     var grid = $('#grid').grid({
         dataSource: '/Players/Get',
         columns: [ { field: 'ID', width: 56 }, { field: 'Name' }, { field: 'PlaceOfBirth', hidden: true } ]
     });
     $('#btnShowColumn').on('click', function () {
         grid.showColumn('PlaceOfBirth');
     });
 </script>