w2grid.toggleSearch

Toggles a search between hidden and shown states.
toggleSearch(field, [field], ...)
field string, field name of the column
Returns integer.

Description

This method will show the search if it was previously hidden and hide the search if it was previously shown. If the search field is hidden, it will not be visible when user opens search overlay and will not display the field if user clicks magnifying glass icon. Returns the number of toggled searches.
If you have grid defined in the following way: You can toggle columns by:

User Comments

comments powered by Disqus