Author Topic: Remote side filter in PQ Grid  (Read 605 times)

vijay@spinetechnologies

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 87
    • View Profile
Remote side filter in PQ Grid
« on: January 06, 2022, 06:36:53 pm »

I am implementing a server-side filter in the PQ grid. I'm able to fetch the pq_filter from the client-side but am not able to deserialize it into an object. I found some reference code from the documentation. I am using ASP.NET Core 5 for server side.

String filterQuery = "";
        List<object> filterParam=new List<object>();
        if (pq_filter!=null && pq_filter.Length > 0)
        {
            deSerializedFilter dsf = FilterHelper.deSerializeFilter(pq_filter);
            filterQuery = dsf.query;
            filterParam = dsf.param;
        }

I am not able to find the reference for FilterHelper

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Remote side filter in PQ Grid
« Reply #1 on: January 07, 2022, 10:00:48 am »
FilterHelper class is defined in the ASP.NET ( MVC ) tab in this example:

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