I am using jqgrid and have simple searching enabled. I am wondering if there is a way to add an additional item in the select list of fields that does not exist as a column in the grid. I would call it something like 'Any Field' so I could search on any of the fields and then handle that outcome server side.
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- What is the best way to do a search in a large fil
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
Try adding new hidden column and setting hidedlgand hidden to true, viewable to false.
Documentation link: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:colmodel_options
The suggestion of Bethrezen with the usage of one hidden column is one way which you can use. You should only don't forget to use
searchhidden: true
searchoptions.Another way which I can suggest you can see on the demo:
In the demo I add the
In the demo I extended the
p.columns
parameter ofjqFilter
method with and additional "pseudo column" 'Any Field'. It's just the idea which you can I hope adopt to your exact requirements.