Custom search

QuestionsCustom search
Scott Pratt asked 11 years ago

How can I get rid of all the search by column fields and add a single search at the top that searches all columns? (with "contains" or "LIKE".)

Even better, the search defaults to all columns but has a dropdown that allows specific columns to be searched.

Thanks for your help.

Scott

1 Answers
Abu Ghufran answered 11 years ago

Hello,

There are currently 3 ways to search.

1. autofilter
2. simple search dialog
3. advance search dialog

For now, you can hide the auto filter style search in this way.

$g->set_actions(array(

"autofilter" => false, // show/hide autofilter for search
"search" => "advance" // show single/multi field search condition (e.g. simple or advance)

)
);

Alternative option would be to use the bottom toolbar search icon. It will open field based searching any you can set it as in attached image. (any option, with all fields)

One field to search in all columns in not supported right now & I'm adding it in todos.

Your Answer

7 + 6 =

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?