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

Modified filters from different page #1074

Open
survik1 opened this issue Mar 23, 2023 · 1 comment
Open

Modified filters from different page #1074

survik1 opened this issue Mar 23, 2023 · 1 comment

Comments

@survik1
Copy link

survik1 commented Mar 23, 2023

Hello, we had table that was rewritten to Datagrid. There is just one function i am not able to implement. We used to sent email which is ~combination of grid filters. I had several ideas on this approach. Any passing of parameter through url + setDefaultFilter/setFilter fails on grid reset. I wanted to modify filter with setRefreshUrl(true) + passing query parameter from component, but any passed value is immediately overriden.

It would seem that only plausible approach is to create dedicated EP that will store required values to session, redirect to component and to delete the value on first setFilter method call. Isnt there a better way to set filter value through link?

@survik1
Copy link
Author

survik1 commented Oct 3, 2023

Alright, so i read the full discussion about this library and I have found that, since v 4.3, all you have to do is to set $grid::$formMethod = 'GET';

As there have been more questions about this functionality, I believe it would be useful to add it to doc.

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

No branches or pull requests

1 participant