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
The problem is the
recreateFilterproperty which default value isfalselike the value of recreateForm property. In my opinion the default value of the properties should betrue(see my suggestion).In any way to solve the problem you can just include
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.