title: jqGrid filterToolbar search
body: <p>In trying to implement a <code>filterToolbar</code> search in jquery, but when I write in the textbox it doesnt send the value, the search field nor the operator: I used an example, here is the code in html file</p>
  
  <pre class="lang-js prettyprint-override"><code>jQuery(document).ready(function () {
      var grid = $("#list");
      $("#list").jqGrid({
          url:'grid.php',
          datatype: 'xml',
          mtype: 'GET',
          deepempty:true ,
          colNames:['Id','Buscar','Desccripcion'],
          colModel:[
              {name:'id',index:'id', width:65, sorttype: 'int', hidden:true, search:false},
              {name:'examen',index:'nombre', width:500, align:'left', search:true},
              {name:'descripcion',index:'descripcion', width:100, sortable:false, hidden:true, search:false}
          ],
          pager: jQuery('#pager'),
          rowNum:25,
          sortname: 'nombre',
          sortorder: 'asc',
          viewrecords: true,
          gridview: true,
          height: 'auto',
          caption: 'Examenes',
          height: "100%", 
          loadComplete: function() {
              var ids = grid.jqGrid('getDataIDs');
  
              for (var i=0;i&lt;ids.length;i++) {
                  var id=ids[i];
                  $("#"+id+ " td:eq(1)", grid[0]).tooltip({
                      content: function(response) {
                          var rowData = grid.jqGrid('getRowData',this.parentNode.id);
                          return rowData.descripcion;
                      },
                      open: function() {
                          $(this).tooltip("widget").stop(false, true).hide().slideDown("fast");
                      },
                      close: function() {
                          $(this).tooltip("widget").stop(false, true).show().slideUp("fast");
                      }
                  }).tooltip("widget").addClass("ui-state-highlight");
              }
          }
      });
      $("#list").jqGrid('navGrid','#pager',{edit:false,add:false,del:false});
      $("#list").jqGrid('filterToolbar', {stringResult: true, searchOnEnter: false,
          defaultSearch: 'cn', ignoreCase: true});
  });
  </code></pre>
  
  <p>and in the php file</p>
  
  <pre class="lang-PHP prettyprint-override"><code>$ops = array(
      'eq'=&gt;'=', //equal
      'ne'=&gt;'&lt;&gt;',//not equal
      'lt'=&gt;'&lt;', //less than
      'le'=&gt;'&lt;=',//less than or equal
      'gt'=&gt;'&gt;', //greater than
      'ge'=&gt;'&gt;=',//greater than or equal
      'bw'=&gt;'LIKE', //begins with
      'bn'=&gt;'NOT LIKE', //doesn't begin with
      'in'=&gt;'LIKE', //is in
      'ni'=&gt;'NOT LIKE', //is not in
      'ew'=&gt;'LIKE', //ends with
      'en'=&gt;'NOT LIKE', //doesn't end with
      'cn'=&gt;'LIKE', // contains
      'nc'=&gt;'NOT LIKE'  //doesn't contain
  );
  function getWhereClause($col, $oper, $val){
      global $ops;
      if($oper == 'bw' || $oper == 'bn') $val .= '%';
      if($oper == 'ew' || $oper == 'en' ) $val = '%'.$val;
      if($oper == 'cn' || $oper == 'nc' || $oper == 'in' || $oper == 'ni') $val = '%'.$val.'%';
      return " WHERE $col {$ops[$oper]} '$val' ";
  
  }
  $where = ""; //if there is no search request sent by jqgrid, $where should be empty
  $searchField = isset($_GET['searchField']) ? $_GET['searchField'] : false;
  $searchOper = isset($_GET['searchOper']) ? $_GET['searchOper']: false;
  $searchString = isset($_GET['searchString']) ? $_GET['searchString'] : false;
  if ($_GET['_search'] == 'true') {
      $where = getWhereClause($searchField,$searchOper,$searchString);
  }   
  </code></pre>
  
  <p>I saw the query, and <code>$searchField</code>,<code>$searchOper</code>,<code>$searchString</code> have no value</p>
  
  <p>But when I use the button search on the navigation bar it works! I dont konw what is happening with the <code>toolbarfilter</code></p>
  
  <p>Thank You</p>