ClassRadDateTimePickerDropDown
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadDateTimePickerDropDown : RadEditorPopupControlBase, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IPopupControl, INotifyPropertyChanged
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadPopupControlBaseRadSizablePopupControlRadEditorPopupControlBaseRadDateTimePickerDropDown
Implements:
Inherited Members
Constructors
RadDateTimePickerDropDown(RadItem)
Initializes a new instance of the RadDateTimePickerDropDown class with the specified owner element.
Fields
OwnerControl
Gets or sets the owner control of the popup, representing the parent control that hosts this dropdown.
Properties
HostedControl
Gets or sets the hosted control in the popup.
Declaration
[Browsable(false)]
public RadControl HostedControl { get; set; }
Property Value
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
reason
The RadPopupCloseReason indicating why the popup is requested to close.
Returns
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
parent
The parent RadElement to which child elements will be added.
Overrides
Dispose(bool)
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
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.
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.
OnRightToLeftChanged(EventArgs)
Handles the RightToLeft property change by updating the sizing grip's RTL setting accordingly.
ShowControl(RadDirection, int)
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
popupDirection
The RadDirection indicating the preferred direction for the popup display.
ownerOffset
The offset value from the owner element for positioning the popup.
Returns
The Point representing the final location of the displayed popup.
Events
Closed
Occurs when the drop down is closed
Declaration
public event RadPopupClosedEventHandler Closed
Event Value
Closing
Occurs when the drop down is closing
Declaration
public event RadPopupClosingEventHandler Closing
Event Value
Opened
Occurs when the drop down is opened
Opening
Occurs when the drop down is opening
Declaration
public event CancelEventHandler Opening
Event Value