is there an option to user search event?
I want when i search someting to expand groups
Someting like this.
$grid[“onsearch”] = “function(){ $(‘.jqgroup:first span’).click(); }”;
1 Answers
Hi,
You can try following:
$opt["autofilter_options"]["afterSearch"] = "function(){alert('after search toolbar');}";
$opt["search_options"]["onSearch"] = "function(){alert('after search dialog');}";
$g->set_options($opt);
For complete list of events, we use this opensource JS component which works behind PHP code.
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:singe_searching
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:toolbar_searching
Your Answer