Class
DateTimeFilterDescriptor

Represents a PropertyFilterDescriptor that is associated with the DateTime data type.

Definition

Namespace:Telerik.Data.Core

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class DateTimeFilterDescriptor : PropertyFilterDescriptor, INotifyPropertyChanged

Inheritance: objectViewModelBaseDataDescriptorFilterDescriptorBasePropertyFilterDescriptorDateTimeFilterDescriptor

Implements: INotifyPropertyChanged

Inherited Members PropertyFilterDescriptor.ValuePropertyFilterDescriptor.PropertyNameViewModelBase.VerifyPropertyName(string)ViewModelBase.OnPropertyChanged(string)ViewModelBase.OnPropertyChanged<T>(Expression<Func<T>>)ViewModelBase.PropertyChanged

Constructors

DateTimeFilterDescriptor()

Declaration

cs-api-definition
public DateTimeFilterDescriptor()

Properties

Operator

Gets or sets the NumericalOperator value that defines the boolean logic behind the left and right operand comparison.

Declaration

cs-api-definition
public NumericalOperator Operator { get; set; }

Property Value

NumericalOperator

Part

Gets or sets the DateTimePart value that determines which parts of the underlying DateTime structures participate in the filtering comparison. Defaults to Ticks

Declaration

cs-api-definition
public DateTimePart Part { get; set; }

Property Value

DateTimePart

Methods

PassesFilterOverride(object)

Encapsulates the core filter logic exposed by the descriptor. Allows inheritors to provide their own custom filtering logic.

Declaration

cs-api-definition
protected override bool PassesFilterOverride(object itemValue)

Parameters

itemValue

object

The property value, as defined by the property.

Returns

bool

True if the filter is passed and the associated item should be displayed, false otherwise.

Overrides PropertyFilterDescriptor.PassesFilterOverride(object)

PropertyChangedOverride(string)

Provides an entry point for inheritors to provide additional logic over the PropertyChanged routine.

Declaration

cs-api-definition
protected override void PropertyChangedOverride(string changedPropertyName)

Parameters

changedPropertyName

string

Overrides PropertyFilterDescriptor.PropertyChangedOverride(string)