Class
RadDateTimePicker

Represents a control that allows users to select a date and time value, and display that value in a customizable format. The control supports date validation, formatting, and a dropdown calendar for visual date selection.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Editors")]
[DefaultBindingProperty("Value")]
public class RadDateTimePicker : RadEditorControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadEditorControlRadDateTimePicker

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIDisposableIDropTargetILayoutHandlerINotifyPropertyChangedISupportInitializeISupportInitializeNotificationISynchronizeInvokeIWin32Window

Inherited Members RadEditorControl.OnParentChanged(EventArgs)RadEditorControl.GetPreferredSize(Size)RadEditorControl.GetRootElementDesiredSize(int, int, int, int)RadEditorControl.SetBoundsCore(int, int, int, int, BoundsSpecified)RadControl.isResizing2RadControl.isDisposing2RadControl.invalidResizeRectRadControl.isAccessibilityRequestedRadControl.Construct()RadControl.CreateBehavior()RadControl.CreateRootElement()RadControl.InitializeRootElement(RootRadElement)RadControl.LoadElementTree()RadControl.LoadElementTree(Size)RadControl.OnKeyDown(KeyEventArgs)RadControl.OnKeyUp(KeyEventArgs)RadControl.OnKeyPress(KeyPressEventArgs)RadControl.OnClick(EventArgs)RadControl.OnDoubleClick(EventArgs)RadControl.OnMouseDown(MouseEventArgs)RadControl.OnMouseUp(MouseEventArgs)RadControl.OnMouseEnter(EventArgs)RadControl.OnMouseLeave(EventArgs)RadControl.OnMouseMove(MouseEventArgs)RadControl.OnMouseHover(EventArgs)RadControl.OnMouseWheel(MouseEventArgs)RadControl.OnMouseCaptureChanged(EventArgs)RadControl.OnGotFocus(EventArgs)RadControl.OnCreateControl()RadControl.OnHandleDestroyed(EventArgs)RadControl.OnVisibleChanged(EventArgs)RadControl.OnFontChanged(EventArgs)RadControl.OnForeColorChanged(EventArgs)RadControl.OnBackColorChanged(EventArgs)RadControl.OnBindingContextChanged(EventArgs)RadControl.OnLocationChanged(EventArgs)RadControl.OnPaddingChanged(EventArgs)RadControl.OnPaint(PaintEventArgs)RadControl.OnLayout(LayoutEventArgs)RadControl.OnAutoSizeChanged(EventArgs)RadControl.OnInvalidated(RadElement)RadControl.OnLoad(Size)RadControl.OnCaptureLosing()RadControl.OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)RadControl.OnScreenTipNeeded(object, ScreenTipNeededEventArgs)RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)RadControl.ProcessMnemonic(char)RadControl.ProcessFocusRequested(RadElement)RadControl.ProcessCaptureChangeRequested(RadElement, bool)RadControl.IsInputKey(Keys)RadControl.GetInputElement()RadControl.BeginInit()RadControl.OnNotifyPropertyChanged(string)RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadControl.OnZoomGesture(ZoomGestureEventArgs)RadControl.OnRotateGesture(RotateGestureEventArgs)RadControl.OnPanGesture(PanGestureEventArgs)RadControl.OnTwoFingerTapGesture(GestureEventArgs)RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadControl.OnGesture(GestureEventArgs)RadControl.ProcessGesture(Message)RadControl.EnableGesture(GestureType)RadControl.DisableGesture(GestureType)RadControl.Refresh()RadControl.SuspendUpdate()RadControl.ResumeUpdate()RadControl.ResumeUpdate(bool)RadControl.InvokeLayoutCallback(LayoutCallback)RadControl.RegisterHostedControl(RadHostItem)RadControl.UnregisterHostedControl(RadHostItem, bool)RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)RadControl.GetPlainText()RadControl.ShouldSerializeProperty(RadProperty)RadControl.ShouldSerializeProperty(RadProperty, RadObject)RadControl.ResetProperty(RadProperty, RadObject)RadControl.CanEditElementAtDesignTime(RadElement)RadControl.ProcessCodedUIMessage(ref IPCMessage)RadControl.FindPropertyInChildren(RadControl, IPCMessage)RadControl.ScaleControl(SizeF, BoundsSpecified)RadControl.PerformRadAutoScale(BoundsSpecified?)RadControl.GetMonitorDpiScaleFactor(Control)RadControl.SetRadAutoScale(bool)RadControl.EnableDpiScalingRadControl.EnableRadAutoScaleRadControl.EnableRadFormInitialDpiScalingRadControl.EnableImageDpiScalingRadControl.EnableSvgImagesRadControl.IsLoadedRadControl.ElementTreeRadControl.UseCompatibleTextRenderingDefaultValueRadControl.BehaviorRadControl.RootElementRadControl.PaddingRadControl.ThemeNameRadControl.EnableThemingRadControl.ThemeClassNameRadControl.ImageListRadControl.ImageScalingSizeRadControl.UseCompatibleTextRenderingRadControl.MaximumSizeRadControl.MinimumSizeRadControl.FocusableRadControl.SiteRadControl.CausesValidationRadControl.IsInitializingRadControl.SmallImageListRadControl.SmallImageScalingSizeRadControl.IsDesignModeRadControl.IsDisplayedRadControl.FocusedElementRadControl.AllowShowFocusCuesRadControl.ShowItemToolTipsRadControl.CommandBindingsRadControl.EnableKeyMapRadControl.BackColorRadControl.ForeColorRadControl.FontRadControl.ValidationCancelRadControl.EnableAnalyticsRadControl.AnalyticsNameRadControl.EnableRadAccessibilityObjectsRadControl.EnableCodedUITestsRadControl.EnableCodedUITestsDefaultValueRadControl.EnableUIAutomationRadControl.EnableUIAutomationDefaultValueRadControl.ElementInvalidatedRadControl.ToolTipTextNeededRadControl.ScreenTipNeededRadControl.ThemeNameChangedRadControl.InitializedRadControl.PropertyChangedRadControl.ZoomGestureRadControl.RotateGestureRadControl.PanGestureRadControl.TwoFingerTapGestureRadControl.PressAndTapGestureScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.AdjustFormScrollbars(bool)ScrollableControl.GetScrollState(int)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.CreateParamsScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateControlsInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.Focus()Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnHandleCreated(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMove(EventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnResize(EventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessCmdKey(ref Message, Keys)Control.ProcessDialogChar(char)Control.ProcessDialogKey(Keys)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.Select(bool, bool)Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackgroundImageControl.BackgroundImageLayoutControl.BindingContextControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontHeightControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.CanEnableImeControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadDateTimePicker()

Initializes a new instance of the RadDateTimePicker class with default settings. Sets up the control with AutoSize enabled and makes it selectable.

Declaration

cs-api-definition
public RadDateTimePicker()

Properties

AutoSelectNextPart

This property controls whether or not the next date part will be automatically selected when the user types.

Declaration

cs-api-definition
public bool AutoSelectNextPart { get; set; }

Property Value

bool

AutoSize

Gets or sets whether the edit control is auto-sized

Declaration

cs-api-definition
[Browsable(true)]
public override bool AutoSize { get; set; }

Property Value

bool

Overrides RadControl.AutoSize

CalendarLocation

Gets or sets the location of the drop down showing the calendar

Declaration

cs-api-definition
[Browsable(false)]
public Point CalendarLocation { get; set; }

Property Value

Point

CalendarSize

Gets or sets the size of the calendar in the drop down

Declaration

cs-api-definition
[Browsable(false)]
public Size CalendarSize { get; set; }

Property Value

Size

Checked

When ShowCheckBox is true, determines that the user has selected a value

Declaration

cs-api-definition
public bool Checked { get; set; }

Property Value

bool

Culture

Gets or sets the culture supported by this calendar.

Declaration

cs-api-definition
[TypeConverter(typeof(CultureInfoConverter))]
public CultureInfo Culture { get; set; }

Property Value

CultureInfo

CustomFormat

Gets or sets the custom date/time format string.

Declaration

cs-api-definition
public string CustomFormat { get; set; }

Property Value

string

DateTimePickerElement

Gets the instance of RadDateTimePickerElement wrapped by this control. RadDateTimePickerElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadDateTimePicker.

Declaration

cs-api-definition
[Browsable(false)]
public virtual RadDateTimePickerElement DateTimePickerElement { get; set; }

Property Value

RadDateTimePickerElement

DefaultSize

Gets the control's default size, which is 164 pixels wide by 20 pixels high.

Declaration

cs-api-definition
protected override Size DefaultSize { get; }

Property Value

Size

Overrides Control.DefaultSize

Format

Gets or sets the format of the date and time displayed in the control.

Declaration

cs-api-definition
public virtual DateTimePickerFormat Format { get; set; }

Property Value

DateTimePickerFormat

MaxDate

Gets or sets the maximum date and time that can be selected in the control.

Declaration

cs-api-definition
public DateTime MaxDate { get; set; }

Property Value

DateTime

MaximumDateTime

Gets the maximum date value allowed for the DateTimePicker control.

Declaration

cs-api-definition
[Browsable(false)]
public static DateTime MaximumDateTime { get; set; }

Property Value

DateTime

MinDate

Gets or sets the minimum date and time that can be selected in the control.

Declaration

cs-api-definition
public DateTime MinDate { get; set; }

Property Value

DateTime

Name

Gets or sets the name of the control and synchronizes it with the internal TextBoxItem control.

Declaration

cs-api-definition
public string Name { get; set; }

Property Value

string

NullDate

The DateTime value assigned to the date picker when the Value is null

Declaration

cs-api-definition
[Bindable(false)]
public DateTime NullDate { get; set; }

Property Value

DateTime

NullText

Gets or sets the text that is displayed when the DateTimePicker contains a null reference.

Declaration

cs-api-definition
public string NullText { get; set; }

Property Value

string

NullableValue

Gets or sets the date/time value assigned to the control.

Declaration

cs-api-definition
[Bindable(true)]
[Browsable(false)]
public virtual DateTime? NullableValue { get; set; }

Property Value

DateTime?

ReadOnly

Gets or sets a value indicating whether RadDateTimePicker is read-only.

Declaration

cs-api-definition
public bool ReadOnly { get; set; }

Property Value

bool

true if the RadDateTimePicker is read-only; otherwise, false. The default is false.

ShowCheckBox

Indicates whether a check box is displayed in the control. When the check box is unchecked no value is selected

Declaration

cs-api-definition
public bool ShowCheckBox { get; set; }

Property Value

bool

ShowUpDown

Indicates whether a spin box rather than a drop down calendar is displayed for editing the control's value

Declaration

cs-api-definition
public bool ShowUpDown { get; set; }

Property Value

bool

Text

Gets or sets the text associated with this control. This is the displayed representation of the date/time value based on the current format settings.

Declaration

cs-api-definition
[Browsable(true)]
[Bindable(true)]
[SettingsBindable(true)]
public override string Text { get; set; }

Property Value

string

Overrides RadControl.Text

Value

Gets or sets the date/time value assigned to the control.

Declaration

cs-api-definition
[Bindable(true)]
public virtual DateTime Value { get; set; }

Property Value

DateTime

Methods

ControlDefinesThemeForElement(RadElement)

Checks whether the element's theme is defined by the control.

Declaration

cs-api-definition
public override bool ControlDefinesThemeForElement(RadElement element)

Parameters

element

RadElement

The element to should be checked.

Returns

bool

true if the control defines theme for this element, false otherwise.

Overrides RadControl.ControlDefinesThemeForElement(RadElement)

Remarks

If true is returned the ThemeResolutionService would not not set any theme to the element to avoid duplicating the style settings of the element.

CreateAccessibilityInstance()

Creates an accessible object for this control to support screen readers and other accessibility tools.

Declaration

cs-api-definition
protected override AccessibleObject CreateAccessibilityInstance()

Returns

AccessibleObject

An instance of AccessibleObject appropriate for this control

Overrides Control.CreateAccessibilityInstance()

CreateChildItems(RadElement)

Creates and initializes the RadDateTimePickerElement that provides the main functionality for this control. Sets up all necessary event handlers for the element.

Declaration

cs-api-definition
protected override void CreateChildItems(RadElement parent)

Parameters

parent

RadElement

The parent element that will contain the created child elements

Overrides RadControl.CreateChildItems(RadElement)

CreateElement()

Creates a new instance of the RadDateTimePickerElement for use in this control.

Declaration

cs-api-definition
protected virtual RadDateTimePickerElement CreateElement()

Returns

RadDateTimePickerElement

A new instance of RadDateTimePickerElement

Dispose(bool)

Releases the unmanaged resources used by the control and optionally releases the managed resources. Properly unregisters all event handlers to prevent memory leaks.

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

true to release both managed and unmanaged resources; false to release only unmanaged resources

Overrides RadControl.Dispose(bool)

EndInit()

Signals the object that initialization is complete and triggers the creation of the mask provider for the text box element.

Declaration

cs-api-definition
public override void EndInit()

Overrides RadControl.EndInit()

OnCheckedChanged(EventArgs)

Raises the CheckedChanged event.

Declaration

cs-api-definition
protected virtual void OnCheckedChanged(EventArgs e)

Parameters

e

EventArgs

The arguments for the event.

OnClosed(RadPopupClosedEventArgs)

Raises the Closed event.

Declaration

cs-api-definition
protected virtual void OnClosed(RadPopupClosedEventArgs args)

Parameters

args

RadPopupClosedEventArgs

The arguments for the event.

OnClosing(RadPopupClosingEventArgs)

Raises the Closing event.

Declaration

cs-api-definition
protected virtual void OnClosing(RadPopupClosingEventArgs args)

Parameters

args

RadPopupClosingEventArgs

The arguments for the event which can be used to affect the closing behavior.

OnEnabledChanged(EventArgs)

Declaration

cs-api-definition
protected override void OnEnabledChanged(EventArgs e)

Parameters

e

EventArgs

Overrides RadControl.OnEnabledChanged(EventArgs)

OnEnter(EventArgs)

Handles the control's enter event by shifting focus to the contained text box element.

Declaration

cs-api-definition
protected override void OnEnter(EventArgs e)

Parameters

e

EventArgs

The event data.

Overrides Control.OnEnter(EventArgs)

OnFormatChanged(EventArgs)

Raises the FormatChanged event

Declaration

cs-api-definition
protected virtual void OnFormatChanged(EventArgs e)

Parameters

e

EventArgs

OnKeyDown(object, KeyEventArgs)

Handles the KeyDown event for the control.

Declaration

cs-api-definition
public virtual void OnKeyDown(object sender, KeyEventArgs e)

Parameters

sender

object

The source of the event.

e

KeyEventArgs

A KeyEventArgs that contains the event data.

OnKeyPress(object, KeyPressEventArgs)

Handles the KeyPress event for the control.

Declaration

cs-api-definition
public virtual void OnKeyPress(object sender, KeyPressEventArgs e)

Parameters

sender

object

The source of the event.

e

KeyPressEventArgs

A KeyPressEventArgs that contains the event data.

OnKeyUp(object, KeyEventArgs)

Handles the KeyUp event for the control.

Declaration

cs-api-definition
public virtual void OnKeyUp(object sender, KeyEventArgs e)

Parameters

sender

object

The source of the event.

e

KeyEventArgs

A KeyEventArgs that contains the event data.

OnLeave(EventArgs)

Handles the control's leave event by triggering the lost focus event.

Declaration

cs-api-definition
protected override void OnLeave(EventArgs e)

Parameters

e

EventArgs

The event data.

Overrides Control.OnLeave(EventArgs)

OnLostFocus(EventArgs)

Handles the control's lost focus event with protection against recursive focus loss handling.

Declaration

cs-api-definition
protected override void OnLostFocus(EventArgs e)

Parameters

e

EventArgs

The event data.

Overrides RadControl.OnLostFocus(EventArgs)

OnNullableValueChanged(EventArgs)

Raises the ValueChanged event

Declaration

cs-api-definition
protected virtual void OnNullableValueChanged(EventArgs e)

Parameters

e

EventArgs

OnOpened(EventArgs)

Raises the Opened event.

Declaration

cs-api-definition
protected virtual void OnOpened(EventArgs args)

Parameters

args

EventArgs

The arguments for the event.

OnOpening(CancelEventArgs)

Raises the Opening event.

Declaration

cs-api-definition
protected virtual void OnOpening(CancelEventArgs args)

Parameters

args

CancelEventArgs

The arguments for the event which can be used to cancel the opening.

OnPreviewKeyDown(PreviewKeyDownEventArgs)

Declaration

cs-api-definition
protected override void OnPreviewKeyDown(PreviewKeyDownEventArgs e)

Parameters

e

PreviewKeyDownEventArgs

Overrides RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)

OnRightToLeftChanged(EventArgs)

Handles changes to the right-to-left layout property and propagates the setting to child elements.

Declaration

cs-api-definition
protected override void OnRightToLeftChanged(EventArgs e)

Parameters

e

EventArgs

The event data.

Overrides RadControl.OnRightToLeftChanged(EventArgs)

OnThemeChanged()

Handles theme changes to ensure all child elements properly reflect the current theme settings. Makes special adjustments for material themes.

Declaration

cs-api-definition
protected override void OnThemeChanged()

Overrides RadControl.OnThemeChanged()

OnValueChanged(EventArgs)

Raises the ValueChanged event

Declaration

cs-api-definition
protected virtual void OnValueChanged(EventArgs e)

Parameters

e

EventArgs

OnValueChanging(ValueChangingEventArgs)

Raises the ValueChanging event

Declaration

cs-api-definition
protected virtual void OnValueChanging(ValueChangingEventArgs e)

Parameters

e

ValueChangingEventArgs

ProcessAutoSizeChanged(bool)

Declaration

cs-api-definition
protected override void ProcessAutoSizeChanged(bool value)

Parameters

value

bool

Overrides RadControl.ProcessAutoSizeChanged(bool)

ResetBackColorThemeOverrides()

Declaration

cs-api-definition
protected override void ResetBackColorThemeOverrides()

Overrides RadControl.ResetBackColorThemeOverrides()

ResetCulture()

Resets the Culture property to its default value ("en-US").

Declaration

cs-api-definition
public void ResetCulture()

ResetForeColorThemeOverrides()

Declaration

cs-api-definition
protected override void ResetForeColorThemeOverrides()

Overrides RadControl.ResetForeColorThemeOverrides()

ResetNullText()

Resets the NullText property to its default value (empty string).

Declaration

cs-api-definition
public void ResetNullText()

SetBackColorThemeOverrides()

Declaration

cs-api-definition
protected override void SetBackColorThemeOverrides()

Overrides RadControl.SetBackColorThemeOverrides()

SetForeColorThemeOverrides()

Declaration

cs-api-definition
protected override void SetForeColorThemeOverrides()

Overrides RadControl.SetForeColorThemeOverrides()

SetToNullValue()

Sets the current value to behave as a null value. This clears the current date selection and displays the NullText if specified.

Declaration

cs-api-definition
public void SetToNullValue()

WndProc(ref Message)

Declaration

cs-api-definition
protected override void WndProc(ref Message m)

Parameters

m

Message

Overrides RadControl.WndProc(ref Message)

Events

CheckedChanged

Occurs when the value of the checkbox in the editor is changed

Declaration

cs-api-definition
public event EventHandler CheckedChanged

Event Value

EventHandler

Closed

Occurs when the drop down is closed

Declaration

cs-api-definition
public event RadPopupClosedEventHandler Closed

Event Value

RadPopupClosedEventHandler

Closing

Occurs when the drop down is closing

Declaration

cs-api-definition
public event RadPopupClosingEventHandler Closing

Event Value

RadPopupClosingEventHandler

FormatChanged

Occurs when the format of the control has changed

Declaration

cs-api-definition
public event EventHandler FormatChanged

Event Value

EventHandler

KeyDown

Occurs when the RadItem has focus and the user presses a key down

Declaration

cs-api-definition
public event KeyEventHandler KeyDown

Event Value

KeyEventHandler

KeyPress

Occurs when the RadItem has focus and the user presses a key

Declaration

cs-api-definition
public event KeyPressEventHandler KeyPress

Event Value

KeyPressEventHandler

KeyUp

Occurs when the RadItem has focus and the user releases the pressed key up

Declaration

cs-api-definition
public event KeyEventHandler KeyUp

Event Value

KeyEventHandler

MaskProviderCreated

Occurs when MaskProvider has been created This event will be fired multiple times because the provider is created when some properties changed Properties are: Mask, Culture, MaskType and more.

Declaration

cs-api-definition
public event EventHandler MaskProviderCreated

Event Value

EventHandler

NullableValueChanged

Occurs when the value of the control is changing

Declaration

cs-api-definition
public event EventHandler NullableValueChanged

Event Value

EventHandler

Opened

Occurs when the drop down is opened

Declaration

cs-api-definition
public event EventHandler Opened

Event Value

EventHandler

Opening

Occurs when the drop down is opening

Declaration

cs-api-definition
public event CancelEventHandler Opening

Event Value

CancelEventHandler

ToggleStateChanged

Occurs when the CheckBox's state changes.

Declaration

cs-api-definition
public event StateChangedEventHandler ToggleStateChanged

Event Value

StateChangedEventHandler

ToggleStateChanging

Occurs before the CheckBox's state changes.

Declaration

cs-api-definition
public event StateChangingEventHandler ToggleStateChanging

Event Value

StateChangingEventHandler

ValueChanged

Occurs when the value of the control has changed

Declaration

cs-api-definition
public event EventHandler ValueChanged

Event Value

EventHandler

ValueChanging

Occurs when the value of the control is changing

Declaration

cs-api-definition
public event ValueChangingEventHandler ValueChanging

Event Value

ValueChangingEventHandler