Author Topic: Remote filter  (Read 281 times)

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Remote filter
« 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:

Code: [Select]
this.option('filterModel', { mode : "OR" }in the filterhandler function but get error:

Code: [Select]
pqgrid.min.js:9 Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf')

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Re: Remote filter
« Reply #1 on: February 19, 2023, 11:52:14 pm »
Solved. But how do I have separate (AND / OR) filtermodes for header filter and custom filter?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Remote filter
« Reply #2 on: February 20, 2023, 03:38:00 pm »
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