QuickGrid doesn't need built-in filtering APIs because you can easily set up your own UI for controlling inclusion criteria and then using that with your data source.
The UI to control filter criteria can be placed anywhere and be built using regular Blazor components and
binding. You may wish to use QuickGrid's ColumnOptions
feature to place the filtering UI
inside a popup associated with a particular column, as in the examples below.
If you are using IQueryable
data (in-memory or from EF Core), you can use .NET's standard
LINQ methods to apply filtering rules before passing this as the grid's Items
parameter.
Try out the sliders in the Total column, and notice how the IQueryable
is built
by combining whichever criteria are in effect.
Argentina | 0 | 1 | 2 | 3 |
Armenia | 0 | 2 | 2 | 4 |
Australia | 17 | 7 | 22 | 46 |
Austria | 1 | 1 | 5 | 7 |
Azerbaijan | 0 | 3 | 4 | 7 |
Bahamas | 2 | 0 | 0 | 2 |
Bahrain | 0 | 1 | 0 | 1 |
Belarus | 1 | 3 | 3 | 7 |
Belgium | 3 | 1 | 3 | 7 |
Bermuda | 1 | 0 | 0 | 1 |
If you are using remote data, you can pass your current filter criteria to the underlying data source
as part of your ItemsProvider
callback.
The column options button can also be changed via CSS. Example:
ID | State | City | Company | Status |
---|
Total: 25333 results found