ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: queensgambit9 on February 19, 2023, 11:01:11 pm
-
Hi
Trying to implement the remote filter at https://paramquery.com/pro/demos/filter.
I also use header filter which has filtermode 'AND'. When above filter is used I want to use 'OR' instead. Tried:
this.option('filterModel', { mode : "OR" }
in the filterhandler function but get error:
pqgrid.min.js:9 Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf')
-
Solved. But how do I have separate (AND / OR) filtermodes for header filter and custom filter?
-
Header filter uses the filterModel.mode while mode can be explicitly passed to filter method in case of custom filter.
https://paramquery.com/pro/api#method-filter