Enables you to add custom filter items which filter data by the current column, to ones displayed within a Header Filter.
Namespace: DevExpress.Web.ASPxTreeList
Assembly: DevExpress.Web.ASPxTreeList.v19.2.dll
public event ASPxTreeListHeaderFilterEventHandler HeaderFilterFillItems
Public Event HeaderFilterFillItems As ASPxTreeListHeaderFilterEventHandler
The HeaderFilterFillItems event handler receives an argument of the ASPxTreeListHeaderFilterEventArgs type. The following properties provide information specific to this event.
Property | Description |
---|---|
Column | Gets the data column currently being filtered. |
Values |
Gets a collection that contains the header filer values.
(Inherited from ASPxGridHeaderFilterEventArgs)
|
End-users can filter column values using the Header Filter. To invoke the filter dropdown, an end-user should click the filter button. The HeaderFilterFillItems event is raised after default filter items are created and before the filter dropdown is shown; and enables you to add custom filter items.
The custom filter items can be used for filtering data by the current column only.
The data column whose filter button has been clicked is returned by the ASPxTreeListHeaderFilterEventArgs.Column property. The list of filter values can be accessed using the ASPxGridHeaderFilterEventArgs.Values property. To add a new filter value, use the ASPxGridHeaderFilterEventArgs.AddValue method.
To build complex filter expressions, use the Filter Control.
ASPxTreeList header filter allows the use of HTML tags in an item text. To learn more, see Header Filter .
Online Demos Refer to the Tree List - Header Filter online demo to review how to filter Tree List data nodes using the Header Filter.