RadInput for ASP.NET AJAX

RadControls for ASP.NET AJAX

The following tables lists the most important properties/methods of the RadTextBox client-side object:

Properties

 
NameParametersReturn TypeDescription
get_valuenonestringReturns the value of the text box.
set_valuestringnoneSets the value of the text box.
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 string that the user typed into 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_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 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_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
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.
enablenonenoneEnables the text box.
disablenonenoneDisables the 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.
isMultiLinenonebooleanReturns true if the text mode is MultiLine.
isReadOnlynonebooleanReturns true of the text box is read-only.
isEmptynonebooleanReturns true if the value of the text box is an empty string.