Author Topic: Filters  (Read 2822 times)

lgauton

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 44
    • View Profile
Filters
« on: February 27, 2015, 09:50:27 pm »
Hi

I'm adding filters to an existing grid, just taken straight from example demo. for local filters. I get the items identified with matching text displayed in yellow but the grid results don't filter down to only show the results that match - I'm still left with complete list. Any ideas?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Filters
« Reply #1 on: February 27, 2015, 10:16:59 pm »
Have you added filterhandler and filterModel.

lgauton

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: Filters
« Reply #2 on: March 02, 2015, 03:01:16 pm »
Hi

Yes - both Filterhandler and filtermodel - taken straight from the example

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Filters
« Reply #3 on: March 02, 2015, 05:19:29 pm »
If dataModel.location = 'remote' and you want local filtering, then you need to add type: local to filterModel.

http://paramquery.com/pro/api#option-filterModel

Please share a jsfiddle if still facing issues.

lgauton

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: Filters
« Reply #4 on: March 02, 2015, 08:04:57 pm »
Thanks that cured the issue - I should have looked more closely