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

RadDateInput Client Object

The following table lists the most important properties/methods of the RadDateInputclient-side object:

Properties

 

NameParametersReturn TypeDescription
get_valuenonestringReturns the value of the control as a string.
set_valuestring, DatenoneSets the value of the control.
get_editValuenonestringGets the value of the control as it is formatted when the control has focus.
get_displayValuenonestringGets the value of the control as it is formatted when the control does not have focus.
get_textBoxValuenonestringGets the string that the user typed into the control.
get_selectedDatenoneDateGets the value of the control as a Date value.
set_selectedDateDatenoneSets the value of the control.
get_caretPositionnoneintegerReturns the current position of the caret.
set_caretPositionintegernoneSets the position of the caret.
get_stylesnoneInputStylesReturns the InputStyles Client object, which can be used to change the appearance of the input control when it is first loaded.
get_autoPostBacknonebooleanReturns the value of the AutoPostBack property.
set_autoPostBackbooleannoneEnables or disables postbacks when the user changes the text in the input control.
get_enablednonebooleanReturns true if the input control is enabled.
get_showButtonnonebooleanReturns true if the input control has an associated image button.
get_selectionOnFocusnoneTelerik.Web.UI.SelectionOnFocusReturns the value of the SelectionOnFocus property. Possible values are Telerik.Web.UI.SelectionOnFocus.CaretToBeginning, Telerik.Web.UI.SelectionOnFocus.CaretToEnd, Telerik.Web.UI.SelectionOnFocus.None, and Telerik.Web.UI.SelectionOnFocus.SelectAll.
set_selectionOnFocusTelerik.Web.UI.SelectionOnFocusnoneSets the SelectionOnFocus property.
get_emptyMessagenonestringReturns the message that appears when the value is not set.
set_emptyMessagestringnoneSets the message that appears when the value is not set.
get_elementnoneHTML elementGets the DOM element for the input element that holds the edit value.
get_wrapperElementnoneHTML elementGets the DOM element for the wrapper element.
get_dateFormatnonestringReturns the format string for the control when it has focus.
get_displayDateFormatnonestringReturns the format string for the control when it does not have focus.
get_dateFormatInfononeDateFormatInfoReturns the Date Format Info object, which includes the settings used to parse date values.
get_minDatenoneDateReturns the earliest valid date value.
set_minDateDatenoneSets the earliest date the user can enter.
get_maxDatenoneDateReturns the latest valid date value.
set_maxDateDatenoneSets the latest date the user can enter.
get_incrementSettingsnoneIncrementSettingsReturns the Increment Settings object, which you can use to change the way the control responds to arrow keys and the mouse wheel.
get_visiblenonebooleanReturns whether the input element is rendered as hidden or not. Does not apply if the control is inside another hidden html element.
set_visiblebooleannoneSets the input element as hidden on the client

Methods

 

NameParametersReturn TypeDescription
parseDatestringDateParses a string using the DateFormatInfo object and returns the resulting date.
selectAllTextnonenoneSelects all text in the control.
selectTextinteger, integernoneSelects the text in the specified range of positions. The first parameter is the start of the range and the second is the end of the range.
isReadOnlynonebooleanReturns true of the control is read-only.
isEmptynonebooleanReturns true if the value has not been set.
enablenonenoneEnables the date input control.
disablenonenoneDisables the date input control.
focusnonenoneSets focus to the control so that the user can edit its value.
blurnonenoneRemoves focus from the control, moving it to the next control in the tab order of the page.
clearnonenoneClears the value of the control.
Not finding the help you need?
Contact Support