ClassRadInput
Represents the RadInput for ASP.NET AJAX control wrapper.
Definition
Namespace:Telerik.WebAii.Controls.Html
Assembly:Telerik.WebAii.Controls.Html.dll
Syntax:
public class RadInput : HtmlContainerControl
Inheritance: objectControlHtmlControlHtmlContainerControlRadInput
Derived Classes:
Inherited Members
Constructors
RadInput()
Initializes a new instance of the RadInput class.
Declaration
public RadInput()
RadInput(Element)
Initializes a new instance of the RadInput class.
Properties
AutoPostBack
Get or set the auto postback enabled value of the input.
CaretPosition
Get or set the caret position of the input.
ClientId
Get the client Id of the input control.
ClientSideLocator
Get the Client side locator.
Declaration
public override string ClientSideLocator { get; }
Property Value
Overrides
DisplayValue
Gets the value of the control as it is formatted when the control does not have focus.
EditValue
Get the value of the control as it is formatted when the control has focus.
EmptyMessage
Get or set the message that appears when the value is not set.
Enabled
Get whether the input is enabled.
HiddenInput
Gets the hiddent input element of RadInput.
InputType
Get the Input control type - TextBox, NumericTextBox, DateInput, MaskedTextBox.
Declaration
public RadInputControlType InputType { get; }
Property Value
InputValue
Get or set the client-side input value.
Declaration
public string InputValue { get; set; }
Property Value
The input value.
IsEmpty
Get whether the input is empty.
IsFocused
Get whether the input is focused.
IsReadOnly
Get whether the input is in read-only mode.
IsValid
Get whether the input has a valid value.
LocatorExpression
Get the locator FindParam.
Declaration
public override IFindExpression LocatorExpression { get; }
Property Value
Overrides
RenderMode
Render mode of RadInput.
SingleInputRendering
Gets the control input rendering type.
TextBoxValue
Gets the string that the user typed into the control.
Methods
AssignElement(Element)
Assign element and initialize this control.
Declaration
public override void AssignElement(Element e)
Parameters
e
The element.
Overrides
Blur()
Removes focus from the text box, moving it to the next control in the tab order of the page.
Declaration
public void Blur()
Clear()
Sets the value of the text box to an empty string.
Declaration
public void Clear()
ControlAssert()
Returns RadControlAssert instance initialized for this control.
Declaration
public RadControlAssert ControlAssert()
Returns
RadControlAssert instance initialized for this control.
Focus()
Sets focus to the text box so that the user can edit its value.
Declaration
public override void Focus()
Overrides
SelectAllText()
Selects all the text of the input.
Declaration
public void SelectAllText()
SelectText(int, int)
Selects 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.
TypeText(string)
Types text into the input.
Declaration
public void TypeText(string valueTyped)
Parameters
valueTyped
The text to be typed.
TypeText(string, int)
Types text into the input.
TypeText(string, int, bool)
Types text into the input. KeyHoldTime internally set to 50.
TypeText(string, int, int, bool, bool, ScrollToVisibleType)
Types text into the input.
Declaration
public void TypeText(string valueTyped, int keyPressTime, int keyHoldTime, bool resetCursorPosition, bool blurAfterTyping = false, ScrollToVisibleType scrollType = ScrollToVisibleType.ElementTopAtWindowTop)
Parameters
valueTyped
The text to be typed.
keyPressTime
The time for each keypress.
keyHoldTime
The time to hold the key pressed.
resetCursorPosition
Specifies whether the cursor position should be reset to the beginning of the input before typing.
blurAfterTyping
Specifies whether the input should be blurred after typing.
scrollType
Specifies how element should be put into view.
TypeText(string, int, int, bool, int, bool, ScrollToVisibleType)
Types text into the input with offset.
Declaration
public void TypeText(string valueTyped, int keyPressTime, int keyHoldTime, bool resetCursorPosition, int offset, bool blurAfterTyping = false, ScrollToVisibleType scrollToVisibleType = ScrollToVisibleType.ElementTopAtWindowTop)
Parameters
valueTyped
The text to be typed.
keyPressTime
The time for each keypress.
keyHoldTime
The time to hold the key pressed.
resetCursorPosition
Specifies whether the cursor position should be reset to the beginning of the input before typing.
offset
blurAfterTyping
Specifies whether the input should be blurred after typing.
scrollToVisibleType
Specifies how element should be put into view.