BaseDateTimeEditor
Represents a date time editor.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[RadToolboxItem(false)]
public class BaseDateTimeEditor : BaseInputEditor, IInputEditor, IValueEditor, ISupportInitialize
Inheritance: objectBaseInputEditorBaseDateTimeEditor
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the BaseDateTimeEditor class.
public BaseDateTimeEditor()
Properties
Gets or sets the custom date/time format string.
public string CustomFormat { get; set; }
Gets the data type reported by this editor, which is DateTime.
public override Type DataType { get; }
Overrides:
Gets or sets the maximum date and time that can be selected in the editor.
public DateTime MaxValue { get; set; }
Gets or sets the minimum date and time that can be selected in the editor.
public DateTime MinValue { get; set; }
The DateTime value assigned to the date picker when the Value is null
public DateTime NullValue { get; set; }
Methods
Selects the first editable date-mask segment and wires the calendar, popup, input, and value notifications for the edit session.
public override void BeginEdit()
Overrides:
Creates the date-time picker element and configures its calendar footer and size when calendar behavior is available.
protected override RadElement CreateEditorElement()
The picker element used by this editor.
Overrides:
Associates the editor with its owner and initializes the picker from the supplied value when it can be converted to a date and time.
Updates mask-boundary state for Left and Right, or clears the null-date sentinel for other keys.
protected virtual void OnKeyDown(KeyEventArgs e)
The key-down event data.
Provides an override point for focus loss from the editor's text box when the calendar popup is closed.
protected virtual void OnLostFocus()