Skip to main content

ASPxTreeList.HeaderFilterEditorInitialize Event

Occurs when a header filter editor is initialized.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public event ASPxTreeListHeaderFilterEditorInitializeEventHandler HeaderFilterEditorInitialize

Event Data

The HeaderFilterEditorInitialize event's data class is ASPxTreeListHeaderFilterEditorInitializeEventArgs. The following properties provide information specific to this event:

Property Description
Column Gets the column to which the processed editor belongs.
Editor Gets the editor in the header filter. Inherited from ASPxGridHeaderFilterEditorInitializeEventArgs.
EditorType Gets the editor type. Inherited from ASPxGridHeaderFilterEditorInitializeEventArgs.

Remarks

You can use the HeaderFilterEditorInitialize event to customize the header filter editor when it is initialized.

<ASPxTreeList ID="ASPxTreeList1" onHeaderFilterEditorInitialize="ASPxTreeList1_HeaderFilterEditorInitialize">
    ...
</ASPxTreeList>
protected void ASPxTreeList1_HeaderFilterEditorInitialize(object sender, ASPxTreeListHeaderFilterEditorInitializeEventArgs e) {
    if (e.EditorType = DevExpress.Web.GridHeaderFilterEditorType.Calendar){
        // your code
    }
}

Note that the HeaderFilterEditorInitialize event supports only editors that do not send callbacks.

See Also