All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ASPxTreeList.HeaderFilterEditorInitialize Event

Occurs when a header filter editor is initialized.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v20.2.dll

Declaration

public event ASPxTreeListHeaderFilterEditorInitializeEventHandler HeaderFilterEditorInitialize
Public Event HeaderFilterEditorInitialize As ASPxTreeListHeaderFilterEditorInitializeEventHandler

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