APYDataGridBundle
APYDataGridBundle copied to clipboard
Filter columns with GET query data
As I'm using FOSRestBundle and have format agnostic controllers, I'd like to apply the filters by GET instead of POST.
However it looks like the form method is hard coded.
<form id="{{ grid.hash }}" action="{{ grid.routeUrl }}" method="post">
That's a bit odd to me as the primary use case of a table view is to "GET" data not "POST" it? :)
I agree with you. The method POST should be used for the mass action, export and tweaks. @APY/collaborators ?
I agree with you, plus one may want also cache GET requests for performance issues.
Great! One other aspect is of course that filters could be shared or bookmarked.
@APY/collaborators I'm working on this issue.
When a grid is filtered, ordered, limited, the page is reset to zero (see). Why ?
All filters are removed from the URL. We could not shared or bookmarked a filtered grid with a page, order or limit.
I use this bundle in my local project. Filtering with GET parameters would be very useful. Thanks for a bundle!
@qferr Do you have an ETA on this?