post by Pedro on Mar 2, 2023

2 months later

post by larasmith on Apr 25, 2023

Hi @Pedro

Why do you need to clean the filters when the page was reloaded?
There is actually a Clear Filtering button under the Settings button.

post by Pedro on Apr 25, 2023

Hi @larasmith

On a page_A you perform a sorting or filtering action and then go to another page_B and return to page_A, you keep the filter cache and roden , this is confusing for the user.

It would be nice to have the ability to clear the cache by code and not by user action.

post by Pedro on Apr 25, 2023

post by larasmith on Apr 26, 2023

Awesome workaround you got there… I was thinking the same approach :blush:

Anyways we can also disable remembering the quick search by setting the:
‘remember_quick_search’ configuration to false :blush:

2 months later

post by johnny on Jun 11, 2023

‘remember_quick_search’ is removed in Grocery CRUD version 3 as also per documentation: Migrating from v2 to v3 | Grocery CRUD - A PHP CRUD Generator Library . However, I will create a new configuration for that since many people are asking for it.

In the meantime a quick work-around can be the below:

window.addEventListener('gcrud.datagrid.ready', () => {
    setTimeout(function () {
            document.querySelector(".grocery-crud .fa-broom").click();
    }, 500);
});

post by johnny on Jun 15, 2023

I am glad to announce you that on 3.0.8 we’ve introduced a new config named: remember_state_upon_refresh that you can switch it to false and it will not remember the previous state (e.g. search data, page… e.t.c.) upon refresh.

Let me know if that works for you.

Regards
Johnny

post by larasmith on Jun 16, 2023

1 / 8
Mar 2023