Skip to main content

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.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public bool SelectAllWhenFilterIsNull { get; set; }

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.

Run Demo: Checked List

<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