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

Kendo UI TextBox component

Definition

Constructors

Initializes a new instance of the TextBox<T> class.

C#
public TextBox(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

If set to true, will render a button that can be used to clear the value.

C#
public bool? ClearButton { get; set; }

If set to false, the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.

C#
public bool? Enable { get; set; }

Sets a value controlling how the color is applied.

C#
public FillMode? FillMode { get; set; }

Specifies the inputmode attribute of the inner <input /> element. It is used to specify the type of on-screen keyboard that should be displayed when the user focuses the input.

C#
public string InputMode { get; set; }

Adds a label before the input. If the input has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.

C#
public TextBoxLabelSettings<T> Label { get; }

The hint displayed by the widget when it is empty. Not set by default.

C#
public string Placeholder { get; set; }

The configuration for the prefix adornment of the component.

C#
public TextBoxPrefixOptionsSettings<T> PrefixOptions { get; }

If set to true, the widget will be readonly and will not allow user input. The widget is not readonly by default and allows user input.

C#
public bool? Readonly { get; set; }

Sets a value controlling the border radius.

C#
public Rounded? Rounded { get; set; }

Sets the size of the component.

C#
public ComponentSize? Size { get; set; }

The configuration for the suffix adornment of the component.

C#
public TextBoxSuffixOptionsSettings<T> SuffixOptions { get; }

The value of the widget.

C#
public string Value { get; set; }

Methods

GetElement method.

C#
protected override TagBuilder GetElement()
Returns:

TagBuilder

Overrides: WidgetBase.GetElement()

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

Implements: IFormEditor.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteHtml(TextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)