Skip to main content
All docs
V25.1
  • DxTreeList.CustomizeFilterRowEditor Event

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

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [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