CheckedListFilterElement.SelectAllWhenFilterIsNull Property

Gets or sets whether to select all filter values when the current filter is null.

Namespace: DevExpress.Xpf.Core.FilteringUI

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

Declaration

public bool SelectAllWhenFilterIsNull { get; set; }
Public Property SelectAllWhenFilterIsNull As Boolean

Property Value

Type Default Description
Boolean

false

true, to select all filter values when the current filter is null; otherwise, false.

Remarks

Set the SelectAllWhenFilterIsNull property to true to make the CheckedListFilterElement show all available filter values checked when a bound control has no applied filters.

TIP

Demo: Checked List

Requires a WPF Subscription. Download

<dxfui:CheckedListFilterElement x:Name="filterElement" FieldName="Country"
                                Context="{Binding ElementName=grid, Path=FilteringContext}" />
<CheckBox IsChecked="{Binding ElementName=filterElement, Path=SelectAllWhenFilterIsNull}"
          Content="Select All When Filter Is Null" />
<CheckBox IsChecked="{Binding ElementName=filterElement, Path=ShowCounts}"
          Content="Show Counts" /> 
See Also