Back to Devexpress

DxTreeView.FilterString Property

blazor-devexpress-dot-blazor-dot-dxtreeview-33ecf644.md

latest1.5 KB
Original Source

DxTreeView.FilterString Property

Specifies the filter criteria used to filter the component’s nodes.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(null)]
[Parameter]
public string FilterString { get; set; }

Property Value

TypeDefaultDescription
Stringnull

The filter criteria.

|

Remarks

Users can specify the filter criteria in the Filter Panel. Use the FilterString property to specify the filter criteria from code:

razor
<DxTreeView @ref="@treeView"
            ShowFilterPanel="true"
            FilterString="May"
            FilterMode="NavigationFilterMode.Nodes"
            CssClass="cw-480"
            Data="@DataSource"
            LoadChildNodesOnDemand="true">
    <DataMappings>
        <DxTreeViewDataMapping HasChildren="HasSubGroups"
                               Children="SubGroups"
                               Text="Title" />
    </DataMappings>
</DxTreeView>

See Also

DxTreeView Class

DxTreeView Members

DevExpress.Blazor Namespace