Author Topic: Search bar and filter model  (Read 2982 times)

gmswsd

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 40
    • View Profile
Search bar and filter model
« 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

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Search bar and filter model
« Reply #1 on: June 03, 2020, 09:17:58 am »
Could you please share a working example as per your description.
« Last Edit: June 03, 2020, 09:34:22 am by paramvir »

gmswsd

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: Search bar and filter model
« Reply #2 on: June 03, 2020, 09:52:27 pm »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Search bar and filter model
« Reply #3 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.

gmswsd

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: Search bar and filter model
« Reply #4 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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Search bar and filter model
« Reply #5 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?
« Last Edit: June 05, 2020, 09:11:59 am by paramvir »

gmswsd

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: Search bar and filter model
« Reply #6 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?