Class RadDateTimePickerCalendar
Represents the RadDateTimePickerCalendar class
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadDateTimePickerCalendar : RadDateTimePickerBehaviorDirector, IDisposable
Constructors
RadDateTimePickerCalendar(RadDateTimePickerElement)
Initializes a new instance of the RadDateTimePickerCalendar class with the specified date time picker element.
Declaration
public RadDateTimePickerCalendar(RadDateTimePickerElement dateTimePicker)
Parameters
|
RadDateTimePickerElement
dateTimePicker
The RadDateTimePickerElement that owns this calendar behavior. |
Properties
ArrowButton
Gets the RadArrowButtonElement instance that represents the Date Time Picker's arrow button.
Declaration
public RadArrowButtonElement ArrowButton { get; }
Property Value
|
RadArrowButtonElement
|
Calendar
Gets or sets the calendar control which is shown when the pop up control is shown
Declaration
public RadCalendar Calendar { get; set; }
Property Value
|
RadCalendar
|
DateTimePickerElement
Gets the instance of RadDateTimePickerElement associated to the control
Declaration
public override RadDateTimePickerElement DateTimePickerElement { get; }
Property Value
|
RadDateTimePickerElement
|
Overrides
DropDownMaxSize
Gets or sets the drop down maximum size.
Declaration
public Size DropDownMaxSize { get; set; }
Property Value
|
System.Drawing.Size
|
DropDownMinSize
Gets or sets the drop down minimum size.
Declaration
public Size DropDownMinSize { get; set; }
Property Value
|
System.Drawing.Size
|
DropDownSizingMode
Gets or sets the drop down sizing mode. The mode can be: horizontal, vertical or a combination of them.
Declaration
public SizingMode DropDownSizingMode { get; set; }
Property Value
|
SizingMode
|
FooterPanel
IsDropDownShow
Gets a value representing whether the drop down is shown
Declaration
public bool IsDropDownShow { get; }
Property Value
|
System.Boolean
|
LastShowDpiScale
Gets or sets the DPI scale factor from the last time the dropdown was shown, used for proper scaling on DPI changes.
Declaration
public SizeF LastShowDpiScale { get; set; }
Property Value
|
System.Drawing.SizeF
|
PopupControl
Gets or sets the drop down control which is shown when the user clicks on the arrow button
Declaration
public RadDateTimePickerDropDown PopupControl { get; set; }
Property Value
|
RadDateTimePickerDropDown
|
ShowFooter
ShowTimePicker
Gets or sets a value indicating whether the time picker control is displayed alongside the calendar in the dropdown.
Declaration
public bool ShowTimePicker { get; set; }
Property Value
|
System.Boolean
|
TextBoxElement
Gets the RadMaskedEditBoxElement instance that provides the text input functionality for date and time values.
Declaration
public override RadMaskedEditBoxElement TextBoxElement { get; }
Property Value
|
RadMaskedEditBoxElement
|
Overrides
TimePicker
Gets the RadTimePickerContent instance that provides time selection functionality when ShowTimePicker is enabled.
Declaration
public RadTimePickerContent TimePicker { get; }
Property Value
|
RadTimePickerContent
|
Methods
CreateCheckBoxElement()
Creates and configures the checkbox element for the date time picker with default alignment and sizing properties.
Declaration
protected virtual RadCheckBoxElement CreateCheckBoxElement()
Returns
|
RadCheckBoxElement
A configured RadCheckBoxElement instance. |
CreateChildren()
Creates dateTimePicker's children
Declaration
public override void CreateChildren()
Overrides
Dispose()
Releases all resources used by the RadDateTimePickerCalendar including event subscriptions and child controls.
Declaration
public void Dispose()
Implements
IntializeCalendar()
Initializes the calendar control with default settings, creates popup elements, and configures event handlers and date range constraints.
Declaration
protected virtual void IntializeCalendar()
SetDateByValue(Nullable<DateTime>, DateTimePickerFormat)
Sets the date displayed in the text box using the specified date value and format type, handling culture-specific formatting and null values.
Declaration
public override void SetDateByValue(DateTime? date, DateTimePickerFormat formatType)
Parameters
|
System.Nullable<System.DateTime>
date
The date value to set, or null to clear the text box. |
|
System.Windows.Forms.DateTimePickerFormat
formatType
The System.Windows.Forms.DateTimePickerFormat that determines how the date should be formatted and displayed. |
Overrides
ShowDropDown()
Shows the drop-down window part of the combo box
Declaration
public virtual void ShowDropDown()