title: jqGrid client-side searching
body: <p>I would like to manually apply searching to my jqGrid via JavaScript. I have tried a guide <a href="http://d3developer.com/2010/08/09/client-side-search-with-jqgrid/" rel="nofollow">here</a>, but can't seem to get it completely working.
  In the grid setup I have a column with name 'error_column' that I would like to perform a search on looking for the string 'Test'.</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>var filter = { "field": "error_column", 'oper': 'eq', "data": 'Test' };
  $("Grid2").jqGrid('setGridParam', { search: true, postData: { filters: filter} })
  $("Grid2").trigger('reloadGrid');
  </code></pre>
  
  <p>When I click the button that this is bound to, nothing happens and it causes no errors.</p>
  
  <p><strong>EDIT</strong>
  Here is the code for initializing the grid:</p>
  
  <pre><code>jQuery("#Grid2").jqGrid({
      datatype: "local",
      height: 250,
      colNames: ['NewSubscriberID', 'Conflicting Subscriber ID', 'Error Field', 'Error Message'],
      colModel: [
          { name: 'new_subscriber_id', index: 'new_subscriber_id', width: 120},
          { name: 'conflicting_subscriber_id', index: 'conflicting_subscriber_id', width: 170},
          { name: 'error_column', index: 'error_column', width: 90, sorttype: "text", search: true},
          { name: 'error_type', index: 'error_type', width: 145}
      ],
      loadonce: true
      });
  </code></pre>
  
  <p>I bind the data to the grid using a local array.</p>