New to Telerik UI for WPF? Start a free 30-day trial

Provides a view model for interaction between the FilteringControl (UI) and FilterDescriptors (model).

Definition

Namespace:Telerik.Windows.Controls.GridView

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

C#
public sealed class FilteringViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable

Inheritance: objectViewModelBaseFilteringViewModel

Implements: IDisposableINotifyPropertyChanged

Inherited Members ViewModelBase.InvokeOnUIThread(Action)ViewModelBase.Dispose()ViewModelBase.PropertyChanged

Properties

Gets collection of available FilterOperator for the associated column's DataType.

C#
public ObservableCollection<FilterOperator> AvailableActions { get; }
Property Value:

The available operations for the column's DataType.

Gets a collection of DistinctValueViewModel that represent each distinct value. This property is used when the value of the DistinctValuesDisplayMode property of the column is List.

C#
public IEnumerable<DistinctValueViewModel> DistinctValues { get; }
Property Value:

The DistinctValueViewModel collection for this FilteringViewModel.

Gets or sets the field filter logical operator.

C#
public FilterCompositionLogicalOperator FieldFilterLogicalOperator { get; set; }
Property Value:

The field filter logical operator.

Gets the first field filter view model.

C#
public FilterDescriptorViewModel Filter1 { get; }
Property Value:

The first field filter view model.

Gets the second field filter view model.

C#
public FilterDescriptorViewModel Filter2 { get; }
Property Value:

The second field filter view model.

Gets a collection of DistinctValueViewModel that represent the filtered distinct value. This property is used when the value of the DistinctValuesDisplayMode property of the column is List.

C#
public IEnumerable<DistinctValueViewModel> FilteredDistinctValues { get; }

Gets the ICollectionView representing the filtered GroupDistinctValueViewModels. This property is used when the value of the DistinctValuesDisplayMode property of the column is Tree.

C#
public ICollectionView GroupedDistinctValuesView { get; }

Gets the logical operators.

C#
public IEnumerable<FilterCompositionLogicalOperator> LogicalOperators { get; }
Property Value:

The logical operators.

Gets or sets the CurrentText value of the RadWatermarkTextBox control used for filtering the distinct values.

C#
public string SearchText { get; set; }

Gets or sets a value indicating whether select all options is applied.

C#
public bool? SelectAll { get; set; }
Property Value:

true if select all is used; otherwise, false.