ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: gmswsd on June 03, 2020, 12:25:03 am

Title: Search bar and filter model
Post by: gmswsd on June 03, 2020, 12:25:03 am
Hi,

When I use the global search bar when specific columns have a filter placed, the search will work but then after those columns still have the values as if they are being filtered on, but they are not. Is there a way to clear the filters during the search, or to have the search save those filters and re-apply them after?

Thanks
Title: Re: Search bar and filter model
Post by: paramvir on June 03, 2020, 09:17:58 am
Could you please share a working example as per your description.
Title: Re: Search bar and filter model
Post by: gmswsd on June 03, 2020, 09:52:27 pm
Here is a jsfiddle:
https://jsfiddle.net/WebSalesDesign/6oucdvz9/16/
Title: Re: Search bar and filter model
Post by: paramvir on June 04, 2020, 08:53:23 pm
I'm not sure I understood the issue faced by you, could you please mention the steps too.
Title: Re: Search bar and filter model
Post by: gmswsd on June 05, 2020, 12:13:08 am
Sure. If I use the filter part to filter on rank for example, only showing number 1, then I use the global search, then I erase the search, then I use the over-due function, then the filter column breaks. I attached a photo.
Title: Re: Search bar and filter model
Post by: paramvir on June 05, 2020, 08:59:53 am
I followed the steps and filtering is working as expected at every step.

I'm not sure what you mean by "filter column breaks".

May be you want to exclude Date column in filterhandler function so that global filter and Over due filter don't contradict each other?
Title: Re: Search bar and filter model
Post by: gmswsd on June 06, 2020, 03:09:49 am
What I mean by break is that the filter crules change from 'range' to 'contain' because of the global filter, so the user cannot use the filter function as 'range' without refreshing. Is it possible to have the global filter change the crules back to 'range' after each search? Or to have the filter checkbox change the filter to range instead of just turning the header on/off?

I cannot see how to change the filterhandler function so it excludes the date column. Can you share how to do this?