w2grid.columnOnOff

Called when user opens grid settings (on grids toolbar) and selects an item.
columnOnOff(el, event, field, value)
el DOM Element, related element, often a checkbox
event object, optional, DOM Event Object
field string, field associated with the checkbox
value integer, number of records to skip
Returns undefined value.

Description

This method is called when user opens grid settings menu and selects an item, normally to show/hide columns, but also to apply skip records and column width reset. The grid will emit the .onColumnOnOff event.
If you have grid defined in the following way:

User Comments

comments powered by Disqus