Find Record Button as Custom toolbar button

QuestionsFind Record Button as Custom toolbar button
Gerald asked 9 years ago

Hi!

Is it possible to add the "Find Record Button" as a "Custom toolbar button"?

Thanks for answer!

3 Answers
Abu Ghufran answered 9 years ago

Hello,

You can call searchGrid function, like:
$("#list1").jqGrid ('searchGrid', <?php echo json_encode_jsfunc($g->options["search_options"])?>);

list1 is grid id, $g is jqgrid object.

Complete Code: http://hastebin.com/isitigehab.php

Gerald answered 9 years ago

Thanks, it works.

But when i disable the original Button to false.. How can i open the advance?

thanks

Gerald answered 9 years ago

OK i found the setting

$grid["search_options"]["multipleSearch"] = "advance";

Your Answer

12 + 15 =

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 0 / 5. Vote count: 0

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?