Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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