I have been fancying the idea of creating my own search dialog to create the search criteria that differs from the approach mentioned in the jqGrid documentation. This for many reasons, including but not limited to the good support of date ranges, more user-friendly search dialogue , etc.
I just would like to know if anyone has attempted the creation of this flow and how effective it is as a workaround to create your own complex search before diving into implementing it:
- create a dialog where user insert the information required for search (different than the current one for the advanced custom search of jqGrid)
- The request sent to the server and retrieved as JSON which I can insert in the grid using
addJSONDatamethod. - jqGrid will preserve the paging for the searched values such that the paging will work correctly (with the fetched data based on the search criteria) once the
nextandpreviousbuttons are hit.
So the question is: can I make the next and previous navigations work for me if I change the filters using setGridParam to include the same data used in the search for the process of navigation. This could happen when the onPaging event is triggered and with simple logic which dictates that the paging is happening for a searched data?
Thanks a lot.
