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

RadNumericTextBox Client Object

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

Properties

 

NameParametersReturn TypeDescription
get_valuenonenumber/stringReturns the value of the NumericTextBox. If there is no value or it is invalid an empty string is returned.
set_valuenumbernoneSets the value of the NumericTextBox. If the numeric value is passed as a string it is converted to number internally.
get_editValuenonestringGets the value of the text box as it is formatted when the text box has focus.
get_displayValuenonestringGets the value of the text box as it is formatted when the text box does not have focus.
get_textBoxValuenonestringGets the text that is displayed in the text box.
set_textBoxValuestringnoneSets the text that will be displayed in the text box.
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 text box 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 text box.
get_enablednonebooleanReturns true if the text box is enabled.
get_showButtonnonebooleanReturns true if the text box has an associated image button.
get_showSpinButtonsnonebooleanReturns true if the text box has an associated pair of spin buttons.
get_selectionOnFocusnoneenumerationReturns 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_selectionOnFocusenumerationnoneSets the SelectionOnFocus property.
get_emptyMessagenonestringReturns the message that appears when the text box value is an empty string.
set_emptyMessagestringnoneSets the message that appears when the text box value is an empty string.
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_incrementSettingsnoneIncrementSettingsReturns the Increment Settings object, which you can use to change the way the text box responds to arrow keys, the mouse wheel, and (if they are showing) the spin buttons.
get_numberFormatnoneNumberFormatReturns the Number format client object, which you can use to change the way the text box formats its value when it does not have focus.
get_maxValuenonenumberReturns the maximum value the user can enter.
set_maxValuenumbernoneSets the maximum value the user can enter.
get_minValuenonenumberReturns the minimum value the user can enter.
set_minValuenumbernoneSets the minimum value the user can enter.
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
enablenonenoneEnables the numeric text box.
disablenonenoneDisables the numeric text box.
focusnonenoneSets focus to the text box so that the user can edit its value.
blurnonenoneRemoves focus from the text box, moving it to the next control in the tab order of the page.
clearnonenoneSets the value of the text box to an empty string.
selectAllTextnonenoneSelects all text in the text box.
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.
isNegativenonebooleanReturns true if the value of the text box is a negative number.
isReadOnlynonebooleanReturns true of the text box is read-only.
isEmptynonebooleanReturns true if the value of the text box has not been set.

See Also

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