Class RadDateTimePickerDropDown
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadDateTimePickerDropDown : RadEditorPopupControlBase, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider, IPopupControl, INotifyPropertyChanged
Constructors
RadDateTimePickerDropDown(RadItem)
Initializes a new instance of the RadDateTimePickerDropDown class with the specified owner element.
Declaration
public RadDateTimePickerDropDown(RadItem ownerElement)
Parameters
|
RadItem
ownerElement
The RadItem that owns this dropdown popup control. |
Fields
OwnerControl
Gets or sets the owner control of the popup, representing the parent control that hosts this dropdown.
Declaration
public RadControl OwnerControl
Field Value
|
RadControl
|
Properties
HostedControl
Gets or sets the hosted control in the popup.
Declaration
public RadControl HostedControl { get; set; }
Property Value
|
RadControl
|
Methods
AutoUpdateBounds()
Automatically updates the minimum and maximum bounds for the popup control based on current size.
Declaration
protected void AutoUpdateBounds()
BackupBounds()
Backs up the current height and width dimensions if they haven't been backed up previously.
Declaration
protected virtual void BackupBounds()
CanClosePopup(RadPopupCloseReason)
Determines whether the popup can be closed for the specified reason, with special handling for mouse-based closing when over arrow button.
Declaration
public override bool CanClosePopup(RadPopupCloseReason reason)
Parameters
|
RadPopupCloseReason
reason
The RadPopupCloseReason indicating why the popup is requested to close. |
Returns
|
System.Boolean
True if the popup can be closed; otherwise, false. |
Overrides
CreateChildItems(RadElement)
Creates child elements for the dropdown popup and configures the sizing grip dock layout properties.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
|
RadElement
parent
The parent RadElement to which child elements will be added. |
Overrides
Dispose(Boolean)
Releases the unmanaged resources used by the popup control and optionally releases the managed resources, including event handler cleanup.
Declaration
protected override void Dispose(bool disposing)
Parameters
|
System.Boolean
disposing
True to release both managed and unmanaged resources; false to release only unmanaged resources. |
Overrides
GetBackupSize()
Gets the backup size for the popup, applying DPI scaling adjustments based on the owner element's scale factor.
Declaration
protected override Size GetBackupSize()
Returns
|
System.Drawing.Size
The backup System.Drawing.Size adjusted for DPI scaling. |
Overrides
HideControl()
Hides the popup control by closing it with the CloseCalled reason.
Declaration
public void HideControl()
OnResize(EventArgs)
Handles the resize event by adjusting the hosted control size to accommodate the sizing grip if visible.
Declaration
protected override void OnResize(EventArgs e)
Parameters
|
System.EventArgs
e
The System.EventArgs containing event data. |
OnRightToLeftChanged(EventArgs)
Handles the RightToLeft property change by updating the sizing grip's RTL setting accordingly.
Declaration
protected override void OnRightToLeftChanged(EventArgs e)
Parameters
|
System.EventArgs
e
The System.EventArgs containing event data. |
Overrides
ShowControl(RadDirection, Int32)
Shows the popup control with the specified direction and owner offset, configuring the sizing grip and positioning based on RTL settings.
Declaration
public Point ShowControl(RadDirection popupDirection, int ownerOffset)
Parameters
|
RadDirection
popupDirection
The RadDirection indicating the preferred direction for the popup display. |
|
System.Int32
ownerOffset
The offset value from the owner element for positioning the popup. |
Returns
|
System.Drawing.Point
The System.Drawing.Point representing the final location of the displayed popup. |
Events
Closed
Occurs when the drop down is closed
Declaration
public event RadPopupClosedEventHandler Closed
Event Type
|
RadPopupClosedEventHandler
|
Closing
Occurs when the drop down is closing
Declaration
public event RadPopupClosingEventHandler Closing
Event Type
|
RadPopupClosingEventHandler
|
Opened
Occurs when the drop down is opened
Declaration
public event EventHandler Opened
Event Type
|
System.EventHandler
|
Opening
Occurs when the drop down is opening
Declaration
public event CancelEventHandler Opening
Event Type
|
System.ComponentModel.CancelEventHandler
|