grid event on search

Questionsgrid event on search
Andrei asked 2 years ago

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
Abu Ghufran answered 2 years ago

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

8 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 1 / 5. Vote count: 2

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?