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

Represents the distinct filter descriptor of a column filter descriptor.

Definition

Namespace:Telerik.Windows.Controls.GridView

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

C#
public interface IDistinctValuesFilterDescriptor : IFilterDescriptor, INotifyPropertyChanged

Inherited Members IFilterDescriptor.CreateFilterExpression(Expression)INotifyPropertyChanged.PropertyChanged

Properties

Gets the distinct values.

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

The distinct values.

Gets or sets the FilterOperator used for comparing actual data values with checked distinct values. The default is FilterOperator.IsEqualTo.

C#
FilterOperator DistinctValuesComparisonOperator { get; set; }
Property Value:

The FilterOperator used for comparing actual data values with checked distinct values.

Gets the filter descriptors.

C#
IEnumerable<OperatorValueFilterDescriptorBase> FilterDescriptors { get; }
Property Value:

The filter descriptors.

Gets a value indicating whether this filter is active.

C#
bool IsActive { get; }
Property Value:

true if the filter is active; otherwise, false.

Methods

Adds the distinct value.

C#
void AddDistinctValue(object distinctValue)
Parameters:distinctValueobject

The distinct value.

Clears the descriptors.

C#
void Clear()

Removes the distinct value.

C#
bool RemoveDistinctValue(object distinctValue)
Parameters:distinctValueobject

The distinct value.

Returns:

bool

True if the distinct value was removed. Otherwise false.

Tries to find descriptor.

C#
OperatorValueFilterDescriptorBase TryFindDescriptor(object distinctValue)
Parameters:distinctValueobject

The distinct value.

Returns:

OperatorValueFilterDescriptorBase