Manually Applying Column Filters
Summary
- Column Filtering in AdapTable can be configured so that Filters are only applied when a button is clicked
- This is particularly useful if you wish to use the IN filter or you are using the server side row model
By default Column Filters are applied as soon as they are created or edited, so users can see the results immediately.
However sometimes this behaviour can be unwelcome.
Note
This is often the case when evaluating Column Filters on the Server, or the In Filter is being used
For this reason, AdapTable allows auto-evaluation of Column Filters to be turned off when necessary.
This is done via the manuallyApplyColumnFilter property in Column Filter Options.
manuallyApplyColumnFilter
Default: falsebooleanManually apply Column Filter only after a button is clicked
In this scenario, AdapTable will not apply Column Filters immediately.
Caution
AdapTable will disable the Filter Bar for any Column where Manually-applying Filters is turned on
Instead 2 extra buttons are displayed in the Filter Form:
Apply Filter- only when that button is clicked are Column Filters evaluated and appliedReset Filter- resets the Filters to what was previously applied (not the same as clearing)
Manually Apply Filters
- In this example we set manuallyApplyColumnFilter to true for String Columns
- As a result Column Filters in String Columns are not applied in the Filter Form automatically - only when the
Apply Filterbutton is clicked - Additionally, the Filter Bar is disabled for these Columns and the Filter Form opens instead