DxTreeListDataColumn.FilterRowValue Property
Specifies the initial value in the column’s filter row editor.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(null)]
[Parameter]
public object FilterRowValue { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Object | null | The initial editor value. |
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. Use the FilterRowValue
property to specify the initial editor value. You should also specify the FilterRowOperatorType property to define an operator type used to create a filter condition based on the editor value.
@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 FilterRowValueChanged event to respond to row value changes. For more information about filter row, see the following topic: Filter Row in Blazor TreeList.