Hides a search or searches.
hideSearch(field, [field], ...)

field | string, field name of the search

Returns integer.

#### Description

Makes a search or searches hidden in the .searches array. The search is identified by the .field property, which is a required property for each search object. The method returns the number of searches it hides that were previously shown.
If you have following grid: $('#grid').w2grid({ name : 'grid', columns: [ { field: 'recid', caption: 'ID', size: '50px' }, { field: 'lname', caption: 'Last Name', size: '30%' }, { field: 'fname', caption: 'First Name', size: '30%' }, { field: 'email', caption: 'Email', size: '40%' }, { field: 'sdate', caption: 'End Date', size: '120px' } ], records: [ { recid: 1, fname: 'John', lname: 'doe', email: 'vitali@gmail.com', sdate: '1/3/2012' }, { recid: 2, fname: 'Stuart', lname: 'Motzart', email: 'jdoe@gmail.com', sdate: '2/4/2012' } ], searches: [ { field: 'recid', caption: 'ID', type: 'int' }, { field: 'fname', caption: 'First Name', type: 'text' }, { field: 'lname', caption: 'Last Name', type: 'text' } ] }); You can hide searches by: w2ui['grid'].hideSearch('recid', 'fname');