Back to Devexpress

ASPxTreeList.HeaderFilterEditorInitialize Event

aspnet-devexpress-dot-web-dot-aspxtreelist-dot-aspxtreelist-36506226.md

latest2.7 KB
Original Source

ASPxTreeList.HeaderFilterEditorInitialize Event

Occurs when a header filter editor is initialized.

Namespace : DevExpress.Web.ASPxTreeList

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

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxTreeListHeaderFilterEditorInitializeEventHandler HeaderFilterEditorInitialize
vb
Public Event HeaderFilterEditorInitialize As ASPxTreeListHeaderFilterEditorInitializeEventHandler

Event Data

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

PropertyDescription
ColumnGets the column to which the processed editor belongs.
EditorGets the editor in the header filter. Inherited from ASPxGridHeaderFilterEditorInitializeEventArgs.
EditorTypeGets the editor type. Inherited from ASPxGridHeaderFilterEditorInitializeEventArgs.

Remarks

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

aspx
<ASPxTreeList ID="ASPxTreeList1" onHeaderFilterEditorInitialize="ASPxTreeList1_HeaderFilterEditorInitialize">
    ...
</ASPxTreeList>
csharp
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

ASPxTreeList Class

ASPxTreeList Members

DevExpress.Web.ASPxTreeList Namespace