APYDataGridBundle icon indicating copy to clipboard operation
APYDataGridBundle copied to clipboard

Filter columns with GET query data

Open andreas-glaser opened this issue 9 years ago • 6 comments
trafficstars

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? :)

andreas-glaser avatar Feb 13 '16 05:02 andreas-glaser

I agree with you. The method POST should be used for the mass action, export and tweaks. @APY/collaborators ?

qferr avatar Feb 13 '16 11:02 qferr

I agree with you, plus one may want also cache GET requests for performance issues.

hmert avatar Feb 13 '16 11:02 hmert

Great! One other aspect is of course that filters could be shared or bookmarked.

andreas-glaser avatar Feb 14 '16 03:02 andreas-glaser

@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.

qferr avatar Feb 27 '16 11:02 qferr

I use this bundle in my local project. Filtering with GET parameters would be very useful. Thanks for a bundle!

volodyawork avatar Feb 27 '16 20:02 volodyawork

@qferr Do you have an ETA on this?

felixfidesio avatar Apr 10 '17 12:04 felixfidesio