BootstrapCardView.BeforeHeaderFilterFillItems Event
Enables you to provide custom filter items instead of default ones displayed within a Header Filter.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.2.dll
NuGet Package: DevExpress.Web.Bootstrap
#Declaration
public event BootstrapCardViewBeforeHeaderFilterFillItemsEventHandler BeforeHeaderFilterFillItems
#Event Data
The BeforeHeaderFilterFillItems event's data class is BootstrapCardViewBeforeHeaderFilterFillItemsEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Column | Gets the data column currently being filtered. |
Handled |
Specifies whether the Before |
Values |
Gets a collection that contains the header filer values.
Inherited from ASPx |
The event data class exposes the following methods:
Method | Description |
---|---|
Add |
Adds the ‘All’ item to the header filter.
Inherited from ASPx |
Add |
Creates and adds the “Blanks” filter value to the header filter values.
Inherited from ASPx |
Add |
Creates and adds the “(Non blanks)” filter value to the header filter values.
Inherited from ASPx |
Add |
Adds a new filter item with the specified filter criteria operator to the header filter.
Inherited from ASPx |
Add |
Adds a new filter item with the specified filter criteria to the header filter.
Inherited from ASPx |
Add |
Adds a new filter item to the header filter.
Inherited from ASPx |
Create |
Creates and returns the (Blanks) filter item used to filter a column by blank values.
Inherited from ASPx |
Create |
Creates and returns the (Non blanks) filter item used to filter a column by blank values.
Inherited from ASPx |
#Remarks
End-users can filter column values using the Header Filter. The CardView control does not display column headers by default. To enable column headers, set the ASPxCardViewSettings.ShowHeaderPanel property to true.To invoke the header filter, an end-user should click on the filter button. The BeforeHeaderFilterFillItems event is raised before the header filter is shown and default filter items are created. The event enables you to provide custom filter items.
The data column whose filter button has been clicked is returned by the BootstrapCardViewBeforeHeaderFilterFillItemsEventArgs.Column property.
Set the ASPxGridBeforeHeaderFilterFillItemsEventArgs.Handled property to true to prevent the BootstrapCardView.HeaderFilterFillItems event from being raised. Otherwise, the event clears the item collection before filling it with default items.
To add custom items to the default items, use the BootstrapCardView.HeaderFilterFillItems event.
Note
The Card
Note
View the Demo To see this feature in action, please refer to the following online demos: Header Filter, Header Filter - Checked list mode and Header Filter - Custom Values.