Author Topic: listener in server side filter execution  (Read 516 times)

vijay@spinetechnologies

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 84
    • View Profile
listener in server side filter execution
« on: May 03, 2022, 12:54:51 pm »

Hi Paramvir,

We implemented server-side pagination on param query as per the documentation. As per our observation, whenever we have focused on the global filter textbox, and we toggle the screens (browsers window) then, the grid sends a request to the server. If the search box doesn't have the focus then request not send to the server in save the case.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6179
    • View Profile
Re: listener in server side filter execution
« Reply #1 on: May 03, 2022, 05:15:49 pm »
Have you implemented server side pagination or server side filtering or both? Can you please clarify your question a bit more.

vijay@spinetechnologies

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 84
    • View Profile
Re: listener in server side filter execution
« Reply #2 on: May 03, 2022, 07:27:31 pm »
We implemented both i.e. Server-side pagination and filtering.

The problem is when the global search box has focused and we revisit the screen one hit is going to the server.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6179
    • View Profile
Re: listener in server side filter execution
« Reply #3 on: May 04, 2022, 10:40:07 am »
I don't see the mentioned issue in the example: https://paramquery.com/pro/demos/filter

Could you please mention the steps required to reproduce the issue in the above example or share a jsfiddle




vijay@spinetechnologies

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 84
    • View Profile
Re: listener in server side filter execution
« Reply #4 on: May 04, 2022, 12:28:01 pm »
In the given example at https://paramquery.com/pro/demos/filter

Please click on the global search textbox (just add focus)

After toggling the browser window (Alt+Tab button)

Whenever we again visit the grid example you will see the grid loader. This means the grid is loading one more time

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6179
    • View Profile
Re: listener in server side filter execution
« Reply #5 on: May 05, 2022, 09:23:54 am »
I'm looking into it, its fix would be available probably in the next version.

Meanwhile you can use button initiated filter ( by placing filter button beside filter textbox ) instead of timeout listener