RadCalendar for ASP.NET AJAX

RadControls for ASP.NET AJAX

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

Properties

Name

Parameters

Return Type

Description

get_selectedDate

none

Date

Returns the selected date and time, or null if no value is assigned.

set_selectedDate

Date

none

Assigns the value of the time picker.

isEmpty

none

boolean

Returns true if the value is unassigned.

get_maxDate

none

Date

Returns the latest date and time the user can assign.

set_maxDate

Date

none

Sets the latest date and time the user can assign.

get_minDate

none

Date

Returns the earliest date and time the user can assign.

set_minDate

Date

none

Sets the earliest date and time the user can assign.

get_enabled

none

boolean

Gets whether the control is enabled.

set_enabled

boolean

none

Sets whether the control is enabled and operable by the user.

get_enableScreenBoundaryDetection

boolean

none

Gets whether the control switches the popup direction automatically, depending on the proximity of the page boundaries.

set_enableScreenBoundaryDetection

boolean

none

Sets whether the control switches the popup direction automatically, depending on the proximity of the page boundaries.

get_popupDirection

none

Telerik.Web.RadDatePickerPopupDirection

Gets the (default) popup direction of the calendar and timeview popups. This property is related to the screen boundary detection.

set_popupDirection

Telerik.Web.RadDatePickerPopupDirection

none

Sets the (default) popup direction of the calendar and timeview popups. This property is related to the screen boundary detection.

isTimePopupVisible

none

boolean

Returns whether the popup time view is visible.

get_timeView

none

RadTimeView

Returns a reference to the client object for the popup time view.

get_dateInput

none

RadDateInput

Returns a reference to the client object for the input area. For details on using this object, see the RadInput documentation.

get_element

none

HTML element

Returns the DOM element for the entire RadTimePicker control.

get_textBox

none

HTML element

Returns the DOM element for the text box that implements the input area.

get_timePopupButton

none

HTML element

Returns the DOM element for the time popup button.

get_timePopupContainer

none

HTML element

Returns the DOM element for the <DIV> that contains the popup time view.

getElementDimensions

HTML element

rectangle

Returns the dimensions of the specified child element.

getElementPosition

HTML element

point

Returns the x and y coordinates of the specified child element.

Methods

Name

Parameters

Return Type

Description

clear

none

none

Clears the selection, leaving the value as unassigned.

showTimePopup

integer, integer

none

Displays the popup time view at the specified coordinates. If the two parameters are omitted, the popup appears below the input area (see sample below).

hideTimePopup

none

none

Hides the popup time view if it is showing.

toggleTimePopup

none

none

Toggles the visible state of the popup time view.

CopyshowTimePopup()
 <script type="text/javascript">
     function ShowPopupAbove(sender, eventArgs) {
         var picker = $find("<%= RadTimePicker1.ClientID %>");
         var textBox = picker.get_textBox();
         var popupElement = picker.get_timePopupContainer();
         var dimensions = picker.getElementDimensions(popupElement);
         var position = picker.getElementPosition(textBox);
         picker.showTimePopup(position.x, position.y - dimensions.height);
     }
</script>

See Also

Other Resources