New to Telerik UI for WinFormsStart a free 30-day trial

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:

C#
[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

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

C#
public RadDateTimePicker()

Properties

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

C#
public bool AutoSelectNextPart { get; set; }

Gets or sets whether the edit control is auto-sized

C#
[Browsable(true)]
public override bool AutoSize { get; set; }

Overrides: RadControl.AutoSize

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

C#
[Browsable(false)]
public Point CalendarLocation { get; set; }

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

C#
[Browsable(false)]
public Size CalendarSize { get; set; }

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

C#
public bool Checked { get; set; }

Gets or sets the culture supported by this calendar.

C#
[TypeConverter(typeof(CultureInfoConverter))]
public CultureInfo Culture { get; set; }

Gets or sets the custom date/time format string.

C#
public string CustomFormat { get; set; }

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.

C#
[Browsable(false)]
public virtual RadDateTimePickerElement DateTimePickerElement { get; set; }

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

C#
protected override Size DefaultSize { get; }

Overrides: Control.DefaultSize

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

C#
public virtual DateTimePickerFormat Format { get; set; }

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

C#
public DateTime MaxDate { get; set; }

Gets the maximum date value allowed for the DateTimePicker control.

C#
[Browsable(false)]
public static DateTime MaximumDateTime { get; set; }

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

C#
public DateTime MinDate { get; set; }

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

C#
public string Name { get; set; }

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

C#
[Bindable(true)]
[Browsable(false)]
public virtual DateTime? NullableValue { get; set; }

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

C#
[Bindable(false)]
public DateTime NullDate { get; set; }

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

C#
public string NullText { get; set; }

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

C#
public bool ReadOnly { get; set; }
Property Value:

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

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

C#
public bool ShowCheckBox { get; set; }

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

C#
public bool ShowUpDown { get; set; }

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.

C#
[Browsable(true)]
[Bindable(true)]
[SettingsBindable(true)]
public override string Text { get; set; }

Overrides: RadControl.Text

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

C#
[Bindable(true)]
public virtual DateTime Value { get; set; }

Methods

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

C#
public override bool ControlDefinesThemeForElement(RadElement element)
Parameters:elementRadElement

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.

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

C#
protected override AccessibleObject CreateAccessibilityInstance()
Returns:

AccessibleObject

An instance of AccessibleObject appropriate for this control

Overrides: Control.CreateAccessibilityInstance()

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

C#
protected override void CreateChildItems(RadElement parent)
Parameters:parentRadElement

The parent element that will contain the created child elements

Overrides: RadControl.CreateChildItems(RadElement)

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

C#
protected virtual RadDateTimePickerElement CreateElement()
Returns:

RadDateTimePickerElement

A new instance of RadDateTimePickerElement

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

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

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

Overrides: RadControl.Dispose(bool)

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

C#
public override void EndInit()

Overrides: RadControl.EndInit()

Raises the CheckedChanged event.

C#
protected virtual void OnCheckedChanged(EventArgs e)
Parameters:eEventArgs

The arguments for the event.

Raises the Closed event.

C#
protected virtual void OnClosed(RadPopupClosedEventArgs args)
Parameters:argsRadPopupClosedEventArgs

The arguments for the event.

Raises the Closing event.

C#
protected virtual void OnClosing(RadPopupClosingEventArgs args)
Parameters:argsRadPopupClosingEventArgs

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

C#
protected override void OnEnabledChanged(EventArgs e)
Parameters:eEventArgs

Overrides: RadControl.OnEnabledChanged(EventArgs)

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

C#
protected override void OnEnter(EventArgs e)
Parameters:eEventArgs

The event data.

Overrides: Control.OnEnter(EventArgs)

Raises the FormatChanged event

C#
protected virtual void OnFormatChanged(EventArgs e)
Parameters:eEventArgs

Handles the KeyDown event for the control.

C#
public virtual void OnKeyDown(object sender, KeyEventArgs e)
Parameters:senderobject

The source of the event.

eKeyEventArgs

A KeyEventArgs that contains the event data.

Handles the KeyPress event for the control.

C#
public virtual void OnKeyPress(object sender, KeyPressEventArgs e)
Parameters:senderobject

The source of the event.

eKeyPressEventArgs

A KeyPressEventArgs that contains the event data.

Handles the KeyUp event for the control.

C#
public virtual void OnKeyUp(object sender, KeyEventArgs e)
Parameters:senderobject

The source of the event.

eKeyEventArgs

A KeyEventArgs that contains the event data.

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

C#
protected override void OnLeave(EventArgs e)
Parameters:eEventArgs

The event data.

Overrides: Control.OnLeave(EventArgs)

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

C#
protected override void OnLostFocus(EventArgs e)
Parameters:eEventArgs

The event data.

Overrides: RadControl.OnLostFocus(EventArgs)

Raises the ValueChanged event

C#
protected virtual void OnNullableValueChanged(EventArgs e)
Parameters:eEventArgs

Raises the Opened event.

C#
protected virtual void OnOpened(EventArgs args)
Parameters:argsEventArgs

The arguments for the event.

Raises the Opening event.

C#
protected virtual void OnOpening(CancelEventArgs args)
Parameters:argsCancelEventArgs

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

C#
protected override void OnPreviewKeyDown(PreviewKeyDownEventArgs e)
Parameters:ePreviewKeyDownEventArgs

Overrides: RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)

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

C#
protected override void OnRightToLeftChanged(EventArgs e)
Parameters:eEventArgs

The event data.

Overrides: RadControl.OnRightToLeftChanged(EventArgs)

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

C#
protected override void OnThemeChanged()

Overrides: RadControl.OnThemeChanged()

Raises the ValueChanged event

C#
protected virtual void OnValueChanged(EventArgs e)
Parameters:eEventArgs

Raises the ValueChanging event

C#
protected virtual void OnValueChanging(ValueChangingEventArgs e)
Parameters:eValueChangingEventArgs
C#
protected override void ProcessAutoSizeChanged(bool value)
Parameters:valuebool

Overrides: RadControl.ProcessAutoSizeChanged(bool)

C#
protected override void ResetBackColorThemeOverrides()

Overrides: RadControl.ResetBackColorThemeOverrides()

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

C#
public void ResetCulture()
C#
protected override void ResetForeColorThemeOverrides()

Overrides: RadControl.ResetForeColorThemeOverrides()

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

C#
public void ResetNullText()
C#
protected override void SetBackColorThemeOverrides()

Overrides: RadControl.SetBackColorThemeOverrides()

C#
protected override void SetForeColorThemeOverrides()

Overrides: RadControl.SetForeColorThemeOverrides()

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

C#
public void SetToNullValue()
C#
protected override void WndProc(ref Message m)
Parameters:mMessage

Overrides: RadControl.WndProc(ref Message)

Events

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

C#
public event EventHandler CheckedChanged

Occurs when the drop down is closed

C#
public event RadPopupClosedEventHandler Closed

Occurs when the drop down is closing

C#
public event RadPopupClosingEventHandler Closing

Occurs when the format of the control has changed

C#
public event EventHandler FormatChanged

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

C#
public event KeyEventHandler KeyDown

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

C#
public event KeyPressEventHandler KeyPress

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

C#
public event KeyEventHandler KeyUp

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.

C#
public event EventHandler MaskProviderCreated

Occurs when the value of the control is changing

C#
public event EventHandler NullableValueChanged

Occurs when the drop down is opened

C#
public event EventHandler Opened

Occurs when the drop down is opening

C#
public event CancelEventHandler Opening

Occurs when the CheckBox's state changes.

C#
public event StateChangedEventHandler ToggleStateChanged

Occurs before the CheckBox's state changes.

C#
public event StateChangingEventHandler ToggleStateChanging

Occurs when the value of the control has changed

C#
public event EventHandler ValueChanged

Occurs when the value of the control is changing

C#
public event ValueChangingEventHandler ValueChanging