New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Class holding settings which are applied to all TextBox TargetControls.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public abstract class InputSetting : IStateManager

Inheritance: objectInputSetting

Derived Classes: DateInputSettingMaskedTextBoxSettingNumericTextBoxSettingRegExpTextBoxSettingTextBoxSetting

Implements: IStateManager

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public InputSetting()

Properties

Gets or sets a value to access the client-side behavior.

C#
public virtual string BehaviorID { get; set; }

In cases where you would like to access the client-side behavior for your setting from script code in the client, you can set this BehaviorID to simplify the process. See example below:

Gets or sets a value indicating whether the value entered into the textbox should be cleared on error.

C#
public virtual bool ClearValueOnError { get; set; }

Gets or sets an instance of the InputManagerClientEvents class which defines the JavaScript functions (client-side event handlers) that are invoked when specific client-side events are raised.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public InputManagerClientEvents ClientEvents { get; }

Gets or sets the css style for TextBox when when the control is disabled.

C#
public virtual string DisabledCssClass { get; set; }
Property Value:

A string object that represents the css style for TextBox control. The default value is an empty string object.

Gets or sets a value message shown when the control is empty.

C#
public virtual string EmptyMessage { get; set; }
Property Value:

A string specifying the empty message. The default value is empty string. ("").

Shown when the control is empty and loses focus. You can set the empty message text through EmptyMessage property.

Gets or sets the css style for TextBox when when the control is empty.

C#
public virtual string EmptyMessageCssClass { get; set; }
Property Value:

A string object that represents the css style for TextBox control. The default value is an empty string object.

Gets or sets the css style for enabled TextBox control.

C#
public virtual string EnabledCssClass { get; set; }
Property Value:

A string object that represents the css style properties for enabled TextBox control. The default value is an empty string.

Gets or sets the text for the error message displayed in the control when validation fails.

C#
public virtual string ErrorMessage { get; set; }
Property Value:

The text for the error message displayed in the control when validation fails.

Gets or sets the css style for invalid state of TextBox control.

C#
public virtual string FocusedCssClass { get; set; }
Property Value:

A string object that represents the css style for invalid TextBox control. The default value is an empty string object.

Gets or sets the css style for hovered TextBox control.

C#
public virtual string HoveredCssClass { get; set; }
Property Value:

A string object that represents the css style properties for hovered TextBox control. The default value is an empty string object.

Gets or sets a value indicating the control should be initialized on client or not.

C#
public virtual bool InitializeOnClient { get; set; }
Property Value:

A value indicating the control should be initialized on client or not.

Gets or stes the css style for invalid state of TextBox control.

C#
public virtual string InvalidCssClass { get; set; }
Property Value:

A string object that represents the style properties for invalid TextBox control. The default value is an empty string object.

Gets if the TargetControls in the InputSettings are successfully validated.

C#
public virtual bool IsValid { get; }
Property Value:

The is valid.

Gets or sets the css style for Read Only state of TextBox control.

C#
public virtual string ReadOnlyCssClass { get; set; }
Property Value:

A string object that represents the css style for Read Only TextBox control. The default value is an empty string object.

Gets or sets whether the text in the control selected on focus and how.

C#
public virtual SelectionOnFocus SelectionOnFocus { get; set; }
Property Value:

Determines whether the text in the control selected on focus and how.

Gets a collection of TargetInput objects that allows for specifying the objects for which input will be created on the client-side.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public TargetControlCollection TargetControls { get; }

Use the TargetControls collection to programmatically control which objects should be inputtipified on the client-side.

Gets an instance of the InputSettingValidation class which defines the validation behavior.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public InputSettingValidation Validation { get; }
C#
protected StateBag ViewState { get; }

Methods

Validates the specified TextBox control with supplied context.

C#
public virtual void Validate(TextBox input, object context)
Parameters:inputTextBox

The TextBox control.

contextobject

The context.

Validates the specified TextBox control.

C#
public virtual void Validate(TextBox input)
Parameters:inputTextBox

The TextBox control.