I need to perform a search action on a jqgrid that has local data but the values for the query would be coming from another ui element in our application not the jqgrid toolbar’s search dialog nor header filter ux.
I looked at the api and did not see any way to hook into the search/filter action programmatically. Is there a way to do this? I found some info on search templates for predefined searchs is there a way to run a search template from the grid api so it performs the filter.
What you need to do is just to add in the
postDatathe searching filter (filtersfor example) and setsearchparameter of jqGrid. Then you can reload the grid. As the results the user will see the filtered grid.Look at the old answer. I hope you will find all what you need here.