SlickGrid icon indicating copy to clipboard operation
SlickGrid copied to clipboard

SlickGrid Column picker - Event for show or hide column after clicking checkbox

Open urprasu opened this issue 9 years ago • 3 comments

SlickGrid Column picker - Event for show or hide column after clicking checkbox

urprasu avatar Dec 14 '16 12:12 urprasu

http://stackoverflow.com/questions/19725250/is-it-possible-to-show-and-hide-some-slickgrid-columns-on-button-click

6pac avatar Dec 14 '16 23:12 6pac

I have below columns default var columns = [{ id: 'name' , field: 'name' , name: 'Device Name' , width: 100 }, { id: 'lastComm' , field: 'lastCommunication' , name: 'Last Communication' , width: 130 , headerCssClass: 'last-communication' , formatter : this.lastCommunicationFormatter },{ id: 'esn' , field: 'esn' , name: 'ESN' , width: 80 }]

Using Header Column picker user check or uncheck the 'Last Communication' column i have to call one function how to do it?

urprasu avatar Dec 19 '16 08:12 urprasu

use grid.setColumns() like the StackOverflow article says

6pac avatar Dec 19 '16 23:12 6pac