FilterBehavior.FilterDisplayText Property

Gets a display text of the filter expression applied to the FilterBehavior.

Namespace: DevExpress.Xpf.Core.FilteringUI

Assembly: DevExpress.Xpf.Grid.v20.1.dll

Declaration

public string FilterDisplayText { get; }
Public ReadOnly Property FilterDisplayText As String

Property Value

Type Description
String

A display text of the filter expression applied to the FilterBehavior.

Remarks

TIP

Topic: FilterBehavior

TIP

Demo: FilterBehavior - Filter Editor Dialog

Requires a WPF Subscription. Download

<Button Content="Show Filter Editor"
        Command="{Binding ElementName=filterBehavior, Path=ShowFilterEditorCommand}">
    <dxmvvm:Interaction.Behaviors>
        <dxfui:FilterBehavior x:Name="filterBehavior" FilterString="[Year] >= 2014 And Sales > 1"
                              ItemsSource="{Binding ElementName=chart, Path=DataSource}">
            <dxfui:FilterField FieldName="Company"/>
            <dxfui:FilterField FieldName="Year"/>
            <dxfui:FilterField FieldName="Sales" Caption="Sales, millions of USD"/>
            <dxfui:FilterField FieldName="Charges" Caption="Charges, millions of USD"/>
        </dxfui:FilterBehavior>
    </dxmvvm:Interaction.Behaviors>
</Button>
<!-- -->
<TextBlock Text="{DXBinding '@e(filterBehavior).FilterDisplayText ?? `No filter`'}"/> 
See Also