Skip to main content
All docs
V24.2

DxTreeList.FilterCriteriaChanged Event

Fires when filter criteria that is applied to TreeList data changes.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public EventCallback<TreeListFilterCriteriaChangedEventArgs> FilterCriteriaChanged { get; set; }

Parameters

Type Description
TreeListFilterCriteriaChangedEventArgs

An object that contains data for this event.

Remarks

Filter criteria applied to TreeList data change when a user changes the filter row filter or applies the filter menu filter, or you call one of the following methods:

Handle the FilterCriteriaChanged event to react to filter criteria changes. Use the event argument’s FilterCriteria property to get the new filter criteria.

@inject EmployeeTaskService EmployeeTaskService

<DxTreeList Data="TreeListData"
            KeyFieldName="Id"
            ParentKeyFieldName="ParentId"
            ShowFilterRow="true"
            FilterCriteriaChanged="FilterCriteriaChanged">
    <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 FilterCriteriaChanged(TreeListFilterCriteriaChangedEventArgs args) {
        CriteriaOperator newCriteria = args.FilterCriteria;
        // ...
    }
}

For more information, see the following topic: Filter API in Blazor TreeList.

See Also