Author Topic: Filtering demo  (Read 3968 times)

jprocess

  • Newbie
  • *
  • Posts: 4
    • View Profile
Filtering demo
« on: February 11, 2014, 12:36:43 am »
Hi -

I have recreated the filter example located here: http://paramquery.com/demos/filter

I cannot get my example to filter. I am using the same json data and I have simply copied and pasted the code from the example. I do get the highlighting of the searched values but it seems refreshAndViewData is not working.

Current version with the same json data here: http://project.touch-point.net/index-filter-test2.htm

Files attached

Any help would be appreciated.

Thanks!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Filtering demo
« Reply #1 on: February 11, 2014, 10:11:58 am »
If you have noticed, the data is being filtered remotely in that demo.

filterBy and filterValue are being posted to the server and data is being filtered using sql queries ( where filterBy = filterValue). you may also use LINQ or ORM.

You may have a look at this demo to get idea for server side implementation under ASP.NET and PHP tabs.
http://paramquery.com/pro/demos/filter

jprocess

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Filtering demo
« Reply #2 on: February 11, 2014, 06:40:43 pm »
Thank you. That makes much more sense now.

So, there are no built in methods to allow for filtering using JSON data? Locally with no database?

And the example you pointed me to, is that Pro version only?

Thanks again

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Filtering demo
« Reply #3 on: February 12, 2014, 08:10:26 am »
The base free version doesn't have local filtering though there is a demo for local search

http://paramquery.com/demos/search

PRO supports local filtering.

http://paramquery.com/pro/demos/filter_local
http://paramquery.com/pro/demos/filter_header_local