DxTreeListDataColumn.FilterRowOperatorType Property
Specifies the initial operator type used to create a filter condition based on the filter row value.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(TreeListFilterRowOperatorType.Default)]
[Parameter]
public TreeListFilterRowOperatorType FilterRowOperatorType { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| TreeListFilterRowOperatorType | Default | An enumeration value. |
Available values:
| Name | Description |
|---|---|
| Default | Uses the Contains operator type for columns bound to the String data type; Equals in other cases. |
| Equal | Selects records that are equal to the entered value. |
| NotEqual | Selects records that are not equal to the entered value. |
| StartsWith | Selects records that start with the entered string. |
| EndsWith | Selects records that end with the entered string. |
| Contains | Selects records that contain the entered string. |
| Less | Selects records that are less than the entered value. String values are compared based on their alphabetical order. |
| LessOrEqual | Selects records that are less than the entered value or equal to it. String values are compared based on their alphabetical order. |
| Greater | Selects records that are greater than the entered value. String values are compared based on their alphabetical order. |
| GreaterOrEqual | Selects records that are greater than the entered value or equal to it. String values are compared based on their alphabetical order. |
Remarks
Enable the ShowFilterRow option to activate a row that allows users to filter TreeList data. The TreeList component generates and configures cell editors for filter row cells based on associated column data types. When a user types into an editor, the TreeList creates a filter condition based on the editor value and applies this condition to the corresponding column.
The TreeList chooses an operator type automatically: Contains for columns bound to the String data type; Equals in other cases. Use the FilterRowOperatorType property to change the operator type.
Note
The filter row uses Contains as its default operator. Any selection in a filter menu changes the column’s filter operator to Equals. Users cannot switch back to Contains with the help of the component’s built-in UI. Subsequent filter operations in the filter row or menu look for exact matches. To change this behavior, you can implement custom filtering logic that indicates or specifies the current filter operator.
When you use the FilterRowValue property to specify the initial editor value, you should also specify the FilterRowOperatorType property explicitly.
@inject EmployeeTaskService EmployeeTaskService
<DxTreeList Data="TreeListData" KeyFieldName="Id" ParentKeyFieldName="ParentId" ShowFilterRow="true">
<Columns>
<DxTreeListDataColumn FieldName="Name"
Caption="Task"
FilterRowValue='"Update"'
FilterRowOperatorType="TreeListFilterRowOperatorType.Contains" />
<DxTreeListDataColumn FieldName="EmployeeName" />
<DxTreeListDataColumn FieldName="StartDate" />
<DxTreeListDataColumn FieldName="DueDate" />
</Columns>
</DxTreeList>
@code {
List<EmployeeTask> TreeListData { get; set; }
protected override void OnInitialized() {
TreeListData = EmployeeTaskService.GenerateData();
}
}

You can handle the FilterRowOperatorTypeChanged event to respond to operator type changes. For more information about the filter row, see the following topic: Filter Row in Blazor TreeList.