One simple option is just to disable the Javascript that shows the drop
down:
search_input = grid.element('#w2p_directory_keywords')
search_input and search_input.attributes.pop('_onfocus')
You can also create your own search widget (e.g., a simple form with an
input and submit button) and pass it as the "search_widget" argument to the
grid.
Finally, by default, the grid will search all searchable fields for the
keywords. If you want some other behavior (e.g., limit search to particular
fields), you can pass your own search function to the grid via the
"searchable" argument.
Anthony
On Wednesday, February 25, 2015 at 1:10:33 AM UTC-5, Alex Glaros wrote:
>
> is there a way to prevent granular field-specific search in grid?
>
> just want the top-level search (that searches all fields) and not the drop
> down that let's user choose which fields to search
>
> thanks
>
> Alex Glaros
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.