Author Topic: multi filtering problem in the infinite_scroll  (Read 1837 times)

kjvjung

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 33
    • View Profile
multi filtering problem in the infinite_scroll
« on: September 04, 2017, 03:58:29 pm »
hello!


https://paramquery.com/pro/demos/infinite_scroll

Was changed as follows.

dataIndx: 'notes' also added a filter like dataIndx: 'company'.

The results were good when loaded.
However, there was a problem when changing the filter value of dataIndx: 'notes'.
dataIndx: The filter value of 'company' is dead. It became blank. It is gone.

How can I fix it?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: multi filtering problem in the infinite_scroll
« Reply #1 on: September 04, 2017, 06:33:29 pm »
Please use oper: 'add' instead of oper: 'replace' in filter method.

Code: [Select]
                        this.filter({
                            oper: 'add',
                            rule: { dataIndx: 'company', value: $(evt.target).val()}
                        });

kjvjung

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: multi filtering problem in the infinite_scroll
« Reply #2 on: September 05, 2017, 11:37:11 am »
thank you^^ ;)