Does jqGrid just have any callback after single field search?
The onSearch callback fires only when the ‘Search’ button is clicked, so if you want to get the records of the search with $("#grid").getGridParam('records'); you get the previous requested rows’s count.
Edit:
This is the code where I use onSearch
onSearch:function(){
var ofilter = $("#competitors").getGridParam("postData");
var jqSearchQuery = "";
$.each(ofilter, function(key, val) { jqSearchQuery += key + '=' + val + '&' ;})
selectopts = new Array();
selectopts['cn'] = 'contiene';
selectopts['bw'] = 'empiece por';
selectopts['eq'] = 'igual';
selectopts['ne'] = 'no igual';
selectopts['lt'] = 'menor que';
selectopts['gt'] = 'mayor que';
selectopts['ew'] = 'termina por';
var records = $("#competitors").getGridParam('records');
searchResult = records+" resultados para la búsqueda <b>\""+ofilter.searchField+" "+selectopts[ofilter.searchOper]+" "+ofilter.searchString+"\"</b>";
$('#searchResult').html('<p>'+searchResult+'</p>');
}
You can use onSearch callback which will be called before starting reloading with new filtered options.