Class
RadInput

Represents the RadInput for ASP.NET AJAX control wrapper.

Definition

Namespace:Telerik.WebAii.Controls.Html

Assembly:Telerik.WebAii.Controls.Html.dll

Syntax:

cs-api-definition
public class RadInput : HtmlContainerControl

Inheritance: objectControlHtmlControlHtmlContainerControlRadInput

Derived Classes: RadDateInputRadInputManagerTextBoxRadMaskedTextBoxRadNumericTextBoxRadTextBox

Inherited Members HtmlContainerControl.TextContentHtmlContainerControl.InnerTextHtmlControl.FindParentContainer<TContainerControl>()HtmlControl.ValidateTag(string)HtmlControl.ValidateControl()HtmlControl.ParseResponseValue<T>(string, T)HtmlControl.GetAttributeAsString(string)HtmlControl.InitializeMappings(MappingsCollection)HtmlControl.GetRectangle()HtmlControl.IsVisible()HtmlControl.GetStyleValue(string)HtmlControl.GetStyle(string)HtmlControl.GetComputedStyleValue(string)HtmlControl.GetComputedStyle(string)HtmlControl.Parent<TContainerControl>()HtmlControl.Capture()HtmlControl.Capture(string, string)HtmlControl.Capture(string)HtmlControl.InvokeEvent(ScriptEventType)HtmlControl.InvokeEvent(ScriptEventType, bool)HtmlControl.InvokeEvent(ScriptEvent)HtmlControl.InvokeEvent(ScriptEvent, bool)HtmlControl.AddEventListener(string, EventHandler<JavascriptEventArgs>)HtmlControl.RemoveEventListener(string, EventHandler<JavascriptEventArgs>)HtmlControl.MouseClick()HtmlControl.MouseClick(MouseClickType)HtmlControl.MouseClick(MouseClickType, int, int)HtmlControl.MouseClick(MouseClickType, Point, OffsetReference)HtmlControl.MouseClick(MouseClickType, int, int, OffsetReference)HtmlControl.MouseHover()HtmlControl.MouseHover(Point)HtmlControl.MouseHover(int, int)HtmlControl.MouseHover(int, int, OffsetReference)HtmlControl.Click()HtmlControl.Click(bool)HtmlControl.ScrollToVisible()HtmlControl.ScrollToVisible(ScrollToVisibleType)HtmlControl.ScrollToVisible(ScrollToVisibleType, Rectangle)HtmlControl.Download(bool, DownloadOption, string, int)HtmlControl.CallMethod(string)HtmlControl.CallMethod<T>(string)HtmlControl.CallMethod<T>(string, T)HtmlControl.GetValue<T>(string)HtmlControl.GetValue<T>(string, T)HtmlControl.GetValue<T>(string, bool)HtmlControl.GetValue<T>(string, bool, T)HtmlControl.SetValue<T>(string, T)HtmlControl.SetValue<T>(string, T, bool)HtmlControl.DragTo(OffsetReference, Point, int, int)HtmlControl.DragTo(OffsetReference, int, int, Rectangle, OffsetReference, int, int)HtmlControl.DragTo(Point)HtmlControl.DragTo(int, int)HtmlControl.DragTo(HtmlControl)HtmlControl.DragTo(HtmlControl, OffsetReference, Point)HtmlControl.DragTo(OffsetReference, Point, HtmlControl)HtmlControl.DragTo(OffsetReference, Point, HtmlControl, OffsetReference, Point)HtmlControl.DragTo(OffsetReference, int, int, bool, HtmlControl, OffsetReference, int, int, bool)HtmlControl.DragToWindowLocation(OffsetReference, int, int, bool, OffsetReference, int, int, bool)HtmlControl.ToString()HtmlControl.AsjQueryControl()HtmlControl.GetElementByTagNameClientSideLocatorHtmlControl.GetElementByIdClientSideLocatorHtmlControl.FindHtmlControl.ScrollTopHtmlControl.ScrollLeftHtmlControl.WaitHtmlControl.IDHtmlControl.CssClassHtmlControl.AttributesHtmlControl.MappingsHtmlControl.StylesHtmlControl.EventsHtmlControl.TagNameHtmlControl.ChildNodesHtmlControl.IsActiveElementHtmlControl.IsEnabledControl.Refresh()Control.AssignFailed(Exception)Control.SetTelerikComponentsVersion(TelerikComponentsVersion?)Control.MatchControl(Element, FindParam)Control.GetFamilyElement(int, Element)Control.ThrowOnInvalidAssignmentControl.TelerikComponentsVersionControl.IsRefreshControl.BaseElementControl.OwnerBrowserControl.Locator

Constructors

RadInput()

Initializes a new instance of the RadInput class.

Declaration

cs-api-definition
public RadInput()

RadInput(Element)

Initializes a new instance of the RadInput class.

Declaration

cs-api-definition
public RadInput(Element element)

Parameters

element

Element

Properties

AutoPostBack

Get or set the auto postback enabled value of the input.

Declaration

cs-api-definition
public bool AutoPostBack { get; set; }

Property Value

bool

CaretPosition

Get or set the caret position of the input.

Declaration

cs-api-definition
public int CaretPosition { get; set; }

Property Value

int

ClientId

Get the client Id of the input control.

Declaration

cs-api-definition
public string ClientId { get; }

Property Value

string

ClientSideLocator

Get the Client side locator.

Declaration

cs-api-definition
public override string ClientSideLocator { get; }

Property Value

string

Overrides HtmlControl.ClientSideLocator

DisplayValue

Gets the value of the control as it is formatted when the control does not have focus.

Declaration

cs-api-definition
public string DisplayValue { get; }

Property Value

string

EditValue

Get the value of the control as it is formatted when the control has focus.

Declaration

cs-api-definition
public string EditValue { get; }

Property Value

string

EmptyMessage

Get or set the message that appears when the value is not set.

Declaration

cs-api-definition
public string EmptyMessage { get; set; }

Property Value

string

Enabled

Get whether the input is enabled.

Declaration

cs-api-definition
public bool Enabled { get; set; }

Property Value

bool

HiddenInput

Gets the hiddent input element of RadInput.

Declaration

cs-api-definition
protected Element HiddenInput { get; }

Property Value

Element

InputType

Get the Input control type - TextBox, NumericTextBox, DateInput, MaskedTextBox.

Declaration

cs-api-definition
public RadInputControlType InputType { get; }

Property Value

RadInputControlType

InputValue

Get or set the client-side input value.

Declaration

cs-api-definition
public string InputValue { get; set; }

Property Value

string

The input value.

IsEmpty

Get whether the input is empty.

Declaration

cs-api-definition
public bool IsEmpty { get; }

Property Value

bool

IsFocused

Get whether the input is focused.

Declaration

cs-api-definition
public bool IsFocused { get; }

Property Value

bool

IsReadOnly

Get whether the input is in read-only mode.

Declaration

cs-api-definition
public bool IsReadOnly { get; }

Property Value

bool

IsValid

Get whether the input has a valid value.

Declaration

cs-api-definition
public bool IsValid { get; }

Property Value

bool

LocatorExpression

Get the locator FindParam.

Declaration

cs-api-definition
public override IFindExpression LocatorExpression { get; }

Property Value

IFindExpression

Overrides Control.LocatorExpression

RenderMode

Render mode of RadInput.

Declaration

cs-api-definition
public RenderMode RenderMode { get; }

Property Value

RenderMode

SingleInputRendering

Gets the control input rendering type.

Declaration

cs-api-definition
public bool SingleInputRendering { get; }

Property Value

bool

TextBoxValue

Gets the string that the user typed into the control.

Declaration

cs-api-definition
public string TextBoxValue { get; }

Property Value

string

Methods

AssignElement(Element)

Assign element and initialize this control.

Declaration

cs-api-definition
public override void AssignElement(Element e)

Parameters

e

Element

The element.

Overrides HtmlContainerControl.AssignElement(Element)

Blur()

Removes focus from the text box, moving it to the next control in the tab order of the page.

Declaration

cs-api-definition
public void Blur()

Clear()

Sets the value of the text box to an empty string.

Declaration

cs-api-definition
public void Clear()

ControlAssert()

Returns RadControlAssert instance initialized for this control.

Declaration

cs-api-definition
public RadControlAssert ControlAssert()

Returns

RadControlAssert

RadControlAssert instance initialized for this control.

Disable()

Disables the input.

Declaration

cs-api-definition
public void Disable()

Enable()

Enables the input.

Declaration

cs-api-definition
public void Enable()

Focus()

Sets focus to the text box so that the user can edit its value.

Declaration

cs-api-definition
public override void Focus()

Overrides HtmlControl.Focus()

SelectAllText()

Selects all the text of the input.

Declaration

cs-api-definition
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.

Declaration

cs-api-definition
public void SelectText(int start, int end)

Parameters

start

int

The start index.

end

int

The end index.

TypeText(string)

Types text into the input.

Declaration

cs-api-definition
public void TypeText(string valueTyped)

Parameters

valueTyped

string

The text to be typed.

TypeText(string, int)

Types text into the input.

Declaration

cs-api-definition
public void TypeText(string valueTyped, int keyPressTime)

Parameters

valueTyped

string

The text to be typed.

keyPressTime

int

The time for each keypress.

TypeText(string, int, bool)

Types text into the input. KeyHoldTime internally set to 50.

Declaration

cs-api-definition
public void TypeText(string valueTyped, int keyPressTime, bool resetCursorPosition)

Parameters

valueTyped

string

The text to be typed.

keyPressTime

int

The time for each keypress.

resetCursorPosition

bool

TypeText(string, int, int, bool, bool, ScrollToVisibleType)

Types text into the input.

Declaration

cs-api-definition
public void TypeText(string valueTyped, int keyPressTime, int keyHoldTime, bool resetCursorPosition, bool blurAfterTyping = false, ScrollToVisibleType scrollType = ScrollToVisibleType.ElementTopAtWindowTop)

Parameters

valueTyped

string

The text to be typed.

keyPressTime

int

The time for each keypress.

keyHoldTime

int

The time to hold the key pressed.

resetCursorPosition

bool

Specifies whether the cursor position should be reset to the beginning of the input before typing.

blurAfterTyping

bool

Specifies whether the input should be blurred after typing.

scrollType

ScrollToVisibleType

Specifies how element should be put into view.

TypeText(string, int, int, bool, int, bool, ScrollToVisibleType)

Types text into the input with offset.

Declaration

cs-api-definition
public void TypeText(string valueTyped, int keyPressTime, int keyHoldTime, bool resetCursorPosition, int offset, bool blurAfterTyping = false, ScrollToVisibleType scrollToVisibleType = ScrollToVisibleType.ElementTopAtWindowTop)

Parameters

valueTyped

string

The text to be typed.

keyPressTime

int

The time for each keypress.

keyHoldTime

int

The time to hold the key pressed.

resetCursorPosition

bool

Specifies whether the cursor position should be reset to the beginning of the input before typing.

offset

int

blurAfterTyping

bool

Specifies whether the input should be blurred after typing.

scrollToVisibleType

ScrollToVisibleType

Specifies how element should be put into view.