Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After opening an edit page and closing it, the filters aren't applied to the grid/list anymore #31

Open
MatthijsDB opened this issue Jul 26, 2019 · 3 comments

Comments

@MatthijsDB
Copy link

This is similar to issue #2 but the other way around. After opening an edit page and closing it, the search control(s) keep their values but the filters aren't applied to the grid or list anymore.
In my project, I'm using a listview and gave it a unique name to make sure the search controls are connected to the correct list.

This behaviour is reproducible on the demo site: https://gridsearch2.mxapps.io/

  • Enter a search term, e.g. 'blue'
  • You can see the list shows less items
  • Click on any list row to open the item edit page
  • Close the page by saving or cancelling
  • The search term still shows in the search control
    • The list shows all the items again
    • No active filters are shown
@sjorsschultz
Copy link

Any update on this?

@BartReyserhove
Copy link

I had this issue as well and I fixed by doing 2 things:

  1. in the update method:

this._setupGrid(this._finishGridSetup.bind(this)); and

_finishGridSetup(){ this._fireSearchWithDelay(); },

In the _updaterendering method I commented out //parameters.defaults = null;

It is weird that the code first gets the default and then a couple of lines later sets it to null...

Disclaimer: I am really not a Javascript expert. This solved the issue I was having, but I am quite sure there are better solutions possible.

@skriese
Copy link

skriese commented Jul 6, 2020

When will this issue be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants