I have a GridView which is really starting to fill up with filters as the user wants to be able to filter on all sorts of stuff.
Would it be possible to move some of the filters to a sidebar ala ‘column2’? I could then just keep the most important filters in the grid and the rest of them can be moved to the sidebar.
I currently have 10 filters in the GridView and my users want to be able to export filter data for all sorts of different scenarios.
So this only seems to be resetting the grid and appending the search form data. But can I change that clientScript to look something similar to the beforeAjaxUpdate script so that it doesn’t reset the grid filters? My js is pretty ropey.
For example, lets say there is a column in the grid ‘Year’. By default it shows every year. If I set it to 2014 and hit tab or enter, I get all rows for the year 2014. But if I change a filter in the sidebar, Year gets reset to all years again. I’d like to keep it at 2014.
Only issue is that you end up with a dirty url with duplicate params. Not a big issue as it’s only noticeable in firebug, but it would be nice to able to somehow merge the params so that the empty duplicate params are parsed out of the url before being returned to the grid.
I’ve done a bit of googling on it and no luck so far. Any ideas on this would be great, but for now it’s working.