Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxTreeList.CustomizeFilterRowEditor Event

Allows you to customize a cell editor in the filter row.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public Action<TreeListCustomizeFilterRowEditorEventArgs> CustomizeFilterRowEditor { get; set; }

#Parameters

Type Description
TreeListCustomizeFilterRowEditorEventArgs

An object that contains data for this event.

#Remarks

The TreeList generates and configures cell editors for individual columns based on associated data types. You can use the EditSettings property to customize a column’s editor settings. The TreeList displays these cell editors in the filter row and in data rows during edit operations.

Blazor TreeList Filter Row

Handle the CustomizeFilterRowEditor event to customize filter row editors separately from data row editors:

@inject EmployeeTaskService EmployeeTaskService

<DxTreeList Data="TreeListData"
            KeyFieldName="Id"
            ParentKeyFieldName="ParentId" 
            ShowFilterRow="true"
            CustomizeFilterRowEditor="TreeList_CustomizeFilterRowEditor">
    <Columns>
        <DxTreeListDataColumn FieldName="Name" Caption="Task" />
        <DxTreeListDataColumn FieldName="EmployeeName" />
        <DxTreeListDataColumn FieldName="StartDate" />
        <DxTreeListDataColumn FieldName="DueDate" />
    </Columns>
</DxTreeList>

@code {
    List<EmployeeTask> TreeListData { get; set; }

    protected override void OnInitialized() {
        TreeListData = EmployeeTaskService.GenerateData();
    }
    void TreeList_CustomizeFilterRowEditor(TreeListCustomizeFilterRowEditorEventArgs e) {
        if(e.EditSettings is ITextEditSettings settings)
            settings.ClearButtonDisplayMode = DataEditorClearButtonDisplayMode.Never;
    }
}
See Also