Back to Devexpress

DxTreeList.ShowFilterRow Property

blazor-devexpress-dot-blazor-dot-dxtreelist-61f0e891.md

latest3.2 KB
Original Source

DxTreeList.ShowFilterRow Property

Specifies whether the TreeList displays the filter row.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(false)]
[Parameter]
public bool ShowFilterRow { get; set; }

Property Value

TypeDefaultDescription
Booleanfalse

true to display the filter row; otherwise, false.

|

Remarks

Enable the ShowFilterRow option to activate a row that allows users to filter TreeList data. The filter row displays in-place text editors for all data columns. 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.

razor
<DxTreeList Data="@DataSource"
            ShowFilterRow="true">
    @*...*@
</DxTreeList>

Run Demo: TreeList - Filter Row

For additional information about the filter row, see the following topic: Filter API in Blazor TreeList.

Apply a Filter When a User Types Text

To filter data as a user types in the filter row, follow the steps below:

razor
<DxTreeListDataColumn FieldName="Name" Caption="Task">
    <FilterRowCellTemplate>
        <DxTextBox Text="@((string)context.FilterRowValue)" BindValueMode=BindValueMode.OnInput
                   TextChanged="(string v) => context.FilterRowValue = v" />
    </FilterRowCellTemplate>
</DxTreeListDataColumn>

Customize Filter Row Editors

You can customize filter row editors in the following ways:

Implements

ShowFilterRow

ShowFilterRow

See Also

DxTreeList Class

DxTreeList Members

DevExpress.Blazor Namespace