Q:

jqgrid change search parameter in colmodel dynamiclly

I have a nav button added by myself. when click it I use:
$("#"+gridId).setColProp('myColumn', { search: true });

But I find that once I click the search button, the columns that can or can't be searched is defined and not change with the setColProp method.
How can I dynamically change

A:

The problem is the recreateFilter property which default value is false like the value of recreateForm property. In my opinion the default value of the properties should be true (see my suggestion).
In any way to solve the problem you can just include
$.extend($.jgrid.search, {recreateFilter: true});

in your code. It will change the default value of recreateFilter. How you can verify on the demo the problem will be solved after that.

