gustavnavar / Grid.Blazor

Grid component with CRUD for Blazor (client-side and server-side) and ASP.NET Core MVC
GNU Lesser General Public License v2.1
696 stars 134 forks source link

Dynamic filters? #377

Open Oninaig opened 1 year ago

Oninaig commented 1 year ago

Quick question related to the filtering aspect of the grid. Is it possible to have the available filters change based on what filters you already have selected? An example being that if you filter on property A then the rest of the filters update to only show available filters that actually have property A as a part of their respective row.

gustavnavar commented 1 year ago

I added 3 examples where a filter's content changes depending on the other filters. You can find them here:

The customer filter is the one that has this feature. If you filter by the OrderID field for values greater than 11385m the grid has only 5 rows and the customer filter shows only 5 customers.

You can see how it's build looking at these custom filters: