w2grid.onColumnOnOff

Called when user shows or hides a column selecting it in the grid settings menu.
onColumnOnOf = function(event)
The normal behavior of the click on a column is to do a sort, however, it can be overwritten using this event. You can add event listener during the object creation: or after the object has been created: The event handler is called before the default action of the event is triggered. You can cancel the default action by calling event.preventDefault(). To perform an action after the event is fully processed, define event.onComplete function.
See events page in utilities for more details.

User Comments

comments powered by Disqus