i have a website with jqgrid and I want to use both:
- Toolbar Searching
- Advanced Multi searching (using multipleSearch: true)
I am using toolbarfilter setup using:
$("#grid").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: true })
So, this way, users have 2 ways of filtering.
My issues are:
Toolbar Text does get removed after advanced filter (and is not factored into search request)
If i have a toolbar search and hit enter. works great. If i then use click on the advance multi search and enter some criteria, it will "overwrite" the filter criteria BUT it leaves the text in the toolbar filter bar so when you see the results it confusing as the result set doesn't match with what you see in the toolbar filter text.Going back and forth doesn't respect each other I set up initial advance multiple filter set, it works great. I then enter some text in the toolbar filter and hit enter, it sends ONLY that filter form the toolbar to the server (thus overwriting the existing filters set from the advance filter - which are now gone). If i go back to the advanced filter, it lists the old filter that i initially sent (not the latest filter that was generated from the toolbar filter). Is there anyway toolbarfilter and advancedfilter can work together and always build up a cumulative filter from both UI inputs, instead of overwriting each others in the request to the server.
So basically in both use cases above it seems like you are not supposed to use both forms of filtering together as they don't seem to play nice together.
Update:
this image is in response to Oleg's first answer: