New to Telerik UI for .NET MAUIStart a free 30-day trial

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

Definition

Constructors

C#
public DateTimeFilterDescriptor()

Properties

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

C#
public NumericalOperator Operator { get; set; }

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

C#
public DateTimePart Part { get; set; }

Methods

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

C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring

Overrides: PropertyFilterDescriptor.OnPropertyChanged(string)

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

C#
protected override bool PassesFilterOverride(object itemValue)
Parameters:itemValueobject

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)