Class
FilteringViewModel

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:

cs-api-definition
public sealed class FilteringViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable

Inheritance: objectViewModelBaseFilteringViewModel

Implements: IDisposableINotifyPropertyChanged

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

Properties

AvailableActions

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

Declaration

cs-api-definition
public ObservableCollection<FilterOperator> AvailableActions { get; }

Property Value

ObservableCollection<FilterOperator>

The available operations for the column's DataType.

DistinctValues

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.

Declaration

cs-api-definition
public IEnumerable<DistinctValueViewModel> DistinctValues { get; }

Property Value

IEnumerable<DistinctValueViewModel>

The DistinctValueViewModel collection for this FilteringViewModel.

FieldFilterLogicalOperator

Gets or sets the field filter logical operator.

Declaration

cs-api-definition
public FilterCompositionLogicalOperator FieldFilterLogicalOperator { get; set; }

Property Value

FilterCompositionLogicalOperator

The field filter logical operator.

Filter1

Gets the first field filter view model.

Declaration

cs-api-definition
public FilterDescriptorViewModel Filter1 { get; }

Property Value

FilterDescriptorViewModel

The first field filter view model.

Filter2

Gets the second field filter view model.

Declaration

cs-api-definition
public FilterDescriptorViewModel Filter2 { get; }

Property Value

FilterDescriptorViewModel

The second field filter view model.

FilteredDistinctValues

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.

Declaration

cs-api-definition
public IEnumerable<DistinctValueViewModel> FilteredDistinctValues { get; }

Property Value

IEnumerable<DistinctValueViewModel>

GroupedDistinctValuesView

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

Declaration

cs-api-definition
public ICollectionView GroupedDistinctValuesView { get; }

Property Value

ICollectionView

LogicalOperators

Gets the logical operators.

Declaration

cs-api-definition
public IEnumerable<FilterCompositionLogicalOperator> LogicalOperators { get; }

Property Value

IEnumerable<FilterCompositionLogicalOperator>

The logical operators.

SearchText

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

Declaration

cs-api-definition
public string SearchText { get; set; }

Property Value

string

SelectAll

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

Declaration

cs-api-definition
public bool? SelectAll { get; set; }

Property Value

bool?

true if select all is used; otherwise, false.