New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

RadDateTimePicker Object

The following table lists the most important methods of the RadDateTimePicker client-side object.

NameParametersReturn TypeDescription
get_selectedDatenoneDateReturns the selected date and time, or null if no date is selected.
set_selectedDateDatenoneAssigns the value of the date/time picker.
isEmptynonebooleanReturns true if the value is unassigned.
get_maxDatenoneDateReturns the latest dateand time the user can select.
set_maxDateDatenoneSets the latest date and time the user can select.
get_minDatenoneDateReturns the earliest date and time the user can select.
set_minDateDatenoneSets the earliest date and time the user can select.
get_focusedDatenoneDateReturns the date that determines the view the popup calendar uses when the value of the date/time picker is not assigned.
set_focusedDateDatenoneSets the date that determines the view the popup calendar uses when the value of the date/time picker is not assigned.
get_enablednonebooleanGets whether the control is enabled.
set_enabledbooleannoneSets whether the control is enabled and operable by the user.
get_enableScreenBoundaryDetectionbooleannoneGets whether the control switches the popup direction automatically, depending on the proximity of the page boundaries.
set_enableScreenBoundaryDetectionbooleannoneSets whether the control switches the popup direction automatically, depending on the proximity of the page boundaries.
get_popupDirectionnoneTelerik.Web.RadDatePickerPopupDirectionGets the (default) popup direction of the calendar and timeview popups. This property is related to the screen boundary detection.
set_popupDirectionTelerik.Web.RadDatePickerPopupDirectionnoneSets the (default) popup direction of the calendar and timeview popups. This property is related to the screen boundary detection.
isPopupVisiblenonebooleanReturns whether the popup calendar is visible.
isTimePopupVisiblenonebooleanReturns whether the popup time view is visible.
get_calendarnoneRadCalendarReturns a reference to the client object for the popup calendar.
get_timeViewnoneRadTimeViewReturns a reference to the client object for the popup time view.
get_dateInputnoneRadDateInputReturns a reference to the client object for the input area. For details on using this object, see the RadInput documentation.
get_elementnoneHTML elementReturns the DOM element for the entire RadDateTimePicker control.
get_textBoxnoneHTML elementReturns the DOM element for the text box that implements the input area.
get_popupButtonnoneHTML elementReturns the DOM element for the calendar popup button.
get_timePopupButtonnoneHTML elementreturns the DOM element for the time popup button.
get_popupContainernoneHTML elementReturns the DOM element for the
that contains the popup calendar.
get_timePopupContainernoneHTML elementReturns the DOM element for the
that contains the popup time view.

Methods

NameParametersReturn TypeDescription
clearnonenoneClears the selection, leaving the value as unassigned.
showPopupinteger, integernoneDisplays the popup calendar at the specified coordinates. If the two parameters are omitted, the popup appears below the input area.
showTimePopupinteger, integernoneDisplays the popup time view at the specified coordinates. If the two parameters are omitted, the popup appears below the input area.
hidePopupnonenoneHides the popup calendar if it is showing.
hideTimePopupnonenoneHides the popup time view if it is showing.
togglePopupnonenoneToggles the visible state of the popup calendar.
toggleTimePopupnonenoneToggles the visible state of the popup time view.

See Also

In this article
MethodsSee Also
Not finding the help you need?
Contact Support