Search Operator

QuestionsSearch Operator
David Gilmore asked 8 years ago

I have a grid with many columns. I would like the default sopt for all of the columns to "in" without adding an entry for each column. Is there a way to do this?

1 Answers
Abu Ghufran answered 8 years ago

If you want it in auto filter (top search bar) then you can edit lib/inc/jqgrid_dist.php

// auto filter with contains search
jQuery("#<?php echo $grid_id?>").jqGrid('filterToolbar',{stringResult: true,searchOnEnter : false, defaultSearch:'cn'});

to

// auto filter with contains search
jQuery("#<?php echo $grid_id?>").jqGrid('filterToolbar',{stringResult: true,searchOnEnter : false, defaultSearch:'in'});

Your Answer

15 + 1 =

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?