title: How can I get jqGrid toolbar search working?
body: <p>At <a href="http://trirand.com/blog/jqgrid/jqgrid.html" rel="nofollow">http://trirand.com/blog/jqgrid/jqgrid.html</a>, under "New in Version 3.7" > "Column Search", there is a method explained to search, and it hasn't worked yet for me. I've added:</p>
  
  <pre><code>jQuery("#toolbar").jqGrid('filterToolbar',{stringResult: true,searchOnEnter : false});
  </code></pre>
  
  <p>and less essential code from the example. My server saw slightly different JSON requests, but no <code>_search=true</code> and no search term, ever.</p>
  
  <p><a href="http://trirand.com/blog/jqgrid/jqgrid.html" rel="nofollow">http://trirand.com/blog/jqgrid/jqgrid.html</a> also gives an incomplete example of server-side code. The SQL statement is given in the example PHP:</p>
  
  <pre><code>$SQL = "SELECT item_id, item, item_cd FROM items ".$where." ORDER BY $sidx $sord LIMIT $start , $limit";
  </code></pre>
  
  <p>but, while <code>$sidx</code>, <code>$sord</code>, <code>$start</code>, and <code>$limit</code> all have code to define them, <code>$where</code> is not defined (or referenced) anywhere else on the page.</p>
  
  <p>How can I get a column search like the page documents, where my server is being hit by the appropriate requests?</p>