ClassRadDateTimePickerCalendar
Represents the RadDateTimePickerCalendar class
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadDateTimePickerCalendar : RadDateTimePickerBehaviorDirector, IDisposable
Inheritance: objectRadDateTimePickerBehaviorDirectorRadDateTimePickerCalendar
Implements:
Constructors
RadDateTimePickerCalendar(RadDateTimePickerElement)
Initializes a new instance of the RadDateTimePickerCalendar class with the specified date time picker element.
Declaration
public RadDateTimePickerCalendar(RadDateTimePickerElement dateTimePicker)
Parameters
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
Calendar
Gets or sets the calendar control which is shown when the pop up control is shown
Declaration
[Browsable(true)]
public RadCalendar Calendar { get; set; }
Property Value
DateTimePickerElement
Gets the instance of RadDateTimePickerElement associated to the control
Declaration
[Browsable(false)]
public override RadDateTimePickerElement DateTimePickerElement { get; }
Property Value
Overrides
DropDownMaxSize
Gets or sets the drop down maximum size.
Declaration
[Browsable(true)]
public Size DropDownMaxSize { get; set; }
Property Value
DropDownMinSize
Gets or sets the drop down minimum size.
Declaration
[Browsable(true)]
public Size DropDownMinSize { get; set; }
Property Value
DropDownSizingMode
Gets or sets the drop down sizing mode. The mode can be: horizontal, vertical or a combination of them.
Declaration
[Browsable(true)]
public SizingMode DropDownSizingMode { get; set; }
Property Value
FooterPanel
Gets the TimePickerDoneButtonContent instance that provides the footer panel with Done button functionality.
Declaration
public TimePickerDoneButtonContent FooterPanel { get; }
Property Value
IsDropDownShow
Gets a value representing whether the drop down is shown
Declaration
[Browsable(false)]
public bool IsDropDownShow { get; }
Property Value
LastShowDpiScale
Gets or sets the DPI scale factor from the last time the dropdown was shown, used for proper scaling on DPI changes.
PopupControl
Gets or sets the drop down control which is shown when the user clicks on the arrow button
Declaration
[Browsable(true)]
public RadDateTimePickerDropDown PopupControl { get; set; }
Property Value
ShowFooter
Gets or sets a value indicating whether the footer panel with Done button is displayed when the time picker is shown.
ShowTimePicker
Gets or sets a value indicating whether the time picker control is displayed alongside the calendar in the dropdown.
TextBoxElement
Gets the RadMaskedEditBoxElement instance that provides the text input functionality for date and time values.
Declaration
public override RadMaskedEditBoxElement TextBoxElement { get; }
Property Value
Overrides
TimePicker
Gets the RadTimePickerContent instance that provides time selection functionality when ShowTimePicker is enabled.
Declaration
public RadTimePickerContent TimePicker { get; }
Property Value
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
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(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
date
The date value to set, or null to clear the text box.
formatType
The 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()