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

Defines the masked-editor and child-element behavior used by a date-time picker.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public abstract class RadDateTimePickerBehaviorDirector

Inheritance: objectRadDateTimePickerBehaviorDirector

Derived Classes: RadDateTimePickerCalendarRadDateTimePickerSpinEdit

Constructors

C#
protected RadDateTimePickerBehaviorDirector()

Properties

Gets the date-time picker element that owns this behavior.

C#
public abstract RadDateTimePickerElement DateTimePickerElement { get; }

Gets the masked editor used to display and edit the date-time value.

C#
public abstract RadMaskedEditBoxElement TextBoxElement { get; }

Methods

Creates the editor and other child elements required by this behavior.

C#
public abstract void CreateChildren()

Synchronizes the masked editor with the nullable date-time and requested display format.

C#
public abstract void SetDateByValue(DateTime? date, DateTimePickerFormat formatType)
Parameters:dateDateTime?

The date-time to display, or null when no value is set.

formatTypeDateTimePickerFormat

The format used to display the date-time.