joeharrison714 / MVCGrid.Net

http://mvcgrid.net
MIT License
75 stars 56 forks source link

NOT Filter #147

Open gaspars86 opened 6 years ago

gaspars86 commented 6 years ago

Hi,

I'm using the grid for a Ticketing System, therefore it's useful to have a not filter, in other words, have the ability for filter for tickets NOT Closed.

I managed to do it by using the AdditionalQueryOptions and sending a bool value to let the server know that it is supposed to exclude the status chosen, however in the result page I don't have a way of telling if the filter is of Status Closed or NOT Closed (in order to display them differently).

Is there a way to go around this without a dirty javascript hack? Or is this something that you could include in your next release? Something as simple as having the ability to add css class to a column/header would do it (+/- the same that exists in rows).

Thanks.