CardViewSettings.BeforeHeaderFilterFillItems Property
Enables you to provide custom filter items instead of the default ones displayed in a Popup Header Filter.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
public ASPxCardViewBeforeHeaderFilterFillItemsEventHandler BeforeHeaderFilterFillItems { get; set; }
Property Value
Type | Description |
---|---|
ASPxCardViewBeforeHeaderFilterFillItemsEventHandler | An ASPxCardViewBeforeHeaderFilterFillItemsEventHandler delegate method allowing you to implement custom processing. |
Remarks
End-users can filter column values via the Header Filter. To invoke the filter dropdown, an end-user clicks on the filter button. The BeforeHeaderFilterFillItems event is raised before the filter dropdown 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 ASPxCardViewHeaderFilterEventArgs.Column property. To add a new filter value, use the ASPxGridHeaderFilterEventArgs.AddValue method.
Set the ASPxGridBeforeHeaderFilterFillItemsEventArgs.Handled property to true to prevent the ASPxCardView.HeaderFilterFillItems event from being raised. Otherwise, the event clears the item collection before filling it with default items.
If you would like to add custom items to the default items, use the CardViewSettings.HeaderFilterFillItems event.
Note
The CardView header filter allows the use of HTML tags in an item text.