I’m looking for a method to set the default value of multiple columns in the filter toolbar with JSON.
I know I can use the defaultvalue option in searchoptions, but I want to be able to set the filter with a json string.
My json string:
{"groupOp":"AND","rules": [{"field":"PART_AFFILIATION","op":"eq","data":"PART-M"},{"field":"STATUS","op":"eq","data":"Active"}]}
The default operation used in the jqGrid can be defined in the
colModel. You can usesoptproperty for the searchoptions. The first element of the array define the operation for the column. ThedefaultSearchoption of the filterToolbar method define the default searching operation only for the column which has nosearchoptions.sopt.