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

Defines the fluent API for configuring the Kendo UI TextArea

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class TextAreaBuilder : MvvmWidgetBuilderBase<TextArea, TextAreaBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<TextArea, TextAreaBuilder>MvvmWidgetBuilderBase<TextArea, TextAreaBuilder>TextAreaBuilder

Implements: IHtmlContent

Inherited Members MvvmWidgetBuilderBase<TextArea, TextAreaBuilder>.UseMvvmInitialization(bool)MvvmWidgetBuilderBase<TextArea, TextAreaBuilder>.UseMvvmInitialization()WidgetBuilderBase<TextArea, TextAreaBuilder>.ToComponent()WidgetBuilderBase<TextArea, TextAreaBuilder>.Expression(string)WidgetBuilderBase<TextArea, TextAreaBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<TextArea, TextAreaBuilder>.Name(string)WidgetBuilderBase<TextArea, TextAreaBuilder>.Deferred(bool)WidgetBuilderBase<TextArea, TextAreaBuilder>.HtmlAttributes(object)WidgetBuilderBase<TextArea, TextAreaBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<TextArea, TextAreaBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<TextArea, TextAreaBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<TextArea, TextAreaBuilder>.Render()WidgetBuilderBase<TextArea, TextAreaBuilder>.ToHtmlString()WidgetBuilderBase<TextArea, TextAreaBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<TextArea, TextAreaBuilder>.ToClientTemplate()WidgetBuilderBase<TextArea, TextAreaBuilder>.AsModule(bool)WidgetBuilderBase<TextArea, TextAreaBuilder>.ComponentWidgetBuilderBase<TextArea, TextAreaBuilder>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the TextArea class.

C#
public TextAreaBuilder(TextArea component)
Parameters:componentTextArea

The component.

Methods

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 TextAreaBuilder Enable(bool value)
Parameters:valuebool

The value for Enable

Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

Example:
C#
@(Html.Kendo().TextArea()
.Name("TextArea")
.Enable(true)
)

Configures the client-side events.

C#
public TextAreaBuilder Events(Action<TextAreaEventBuilder> configurator)
Parameters:configuratorAction<TextAreaEventBuilder>

The client events action.

Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

Example:
C#
@(Html.Kendo().TextArea()
.Name("TextArea")
.Events(events =&gt; events
.Change("onChange")
)
)

Sets a value controlling how the color is applied.

C#
public TextAreaBuilder FillMode(FillMode value)
Parameters:valueFillMode

The value for FillMode

Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

Example:
C#
@(Html.Kendo().TextArea()
.Name("TextArea")
.FillMode(FillMode.Solid)
)

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 TextAreaBuilder InputMode(string value)
Parameters:valuestring

The value for InputMode

Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

Example:
C#
@(Html.Kendo().TextArea()
.Name("textArea")
.InputMode("search")
)

Adds a label before the textarea. If the textarea 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 TextAreaBuilder Label(Action<TextAreaLabelSettingsBuilder> configurator)
Parameters:configuratorAction<TextAreaLabelSettingsBuilder>

The TextAreaLabelSettingsBuilder for the label setting.

Returns:

TextAreaBuilder

Returns the current instance of TextAreaBuilder .

Adds a label before the textarea. If the textarea 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 TextAreaBuilder Label(string label)
Parameters:labelstring

The label.

Returns:

TextAreaBuilder

Returns the current instance of TextAreaBuilder .

Defines the layout flow of the component.

C#
public TextAreaBuilder LayoutFlow(TextAreaLayoutFlow value)
Parameters:valueTextAreaLayoutFlow

The value for LayoutFlow

Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

The maximum number of characters that the user can enter.

C#
public TextAreaBuilder MaxLength(double value)
Parameters:valuedouble

The value for MaxLength

Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

Example:
C#
@(Html.Kendo().TextArea()
.Name("TextArea")
.MaxLength(112)
)

The maximum number of visible rows to which the textarea can auto-resize. Used in combination with resize: "auto".

C#
public TextAreaBuilder MaxRows(double value)
Parameters:valuedouble

The value for MaxRows

Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

Defines how the content overflow should be handled

C#
public TextAreaBuilder Overflow(TextAreaOverflow value)
Parameters:valueTextAreaOverflow

The value for Overflow

Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

Example:
C#
@(Html.Kendo().TextArea()
.Name("TextArea")
.Overflow(TextAreaOverflow.Scroll)
)

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

C#
public TextAreaBuilder Placeholder(string value)
Parameters:valuestring

The value for Placeholder

Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

Example:
C#
@(Html.Kendo().TextArea()
.Name("TextArea")
.Placeholder("Value")
)

The configuration for the prefix adornment of the component.

C#
public TextAreaBuilder PrefixOptions(Action<TextAreaPrefixOptionsSettingsBuilder> configurator)
Parameters:configuratorAction<TextAreaPrefixOptionsSettingsBuilder>

The TextAreaPrefixOptionsSettingsBuilder for the prefixoptions setting.

Returns:

TextAreaBuilder

Returns the current instance of TextAreaBuilder .

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 TextAreaBuilder Readonly()
Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

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 TextAreaBuilder Readonly(bool value)
Parameters:valuebool

The value for Readonly

Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

Example:
C#
@(Html.Kendo().TextArea()
.Name("TextArea")
.Readonly(true)
)

Defines how the widget should be resized

C#
public TextAreaBuilder Resize(TextAreaResize value)
Parameters:valueTextAreaResize

The value for Resize

Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

Sets a value controlling the border radius.

C#
public TextAreaBuilder Rounded(Rounded value)
Parameters:valueRounded

The value for Rounded

Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

Example:
C#
@(Html.Kendo().TextArea()
.Name("TextArea")
.Rounded(true)
)

The number of visible text lines for the control.

C#
public TextAreaBuilder Rows(double value)
Parameters:valuedouble

The value for Rows

Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

Example:
C#
@(Html.Kendo().TextArea()
.Name("TextArea")
.Rows(58)
)

Sets the size of the component.

C#
public TextAreaBuilder Size(ComponentSize value)
Parameters:valueComponentSize

The value for Size

Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

Example:
C#
@(Html.Kendo().TextArea()
.Name("TextArea")
.Size(ComponentSize.Large)
)

The configuration for the suffix adornment of the component.

C#
public TextAreaBuilder SuffixOptions(Action<TextAreaSuffixOptionsSettingsBuilder> configurator)
Parameters:configuratorAction<TextAreaSuffixOptionsSettingsBuilder>

The TextAreaSuffixOptionsSettingsBuilder for the suffixoptions setting.

Returns:

TextAreaBuilder

Returns the current instance of TextAreaBuilder .

The value of the widget.

C#
public TextAreaBuilder Value(string value)
Parameters:valuestring

The value for Value

Returns:

TextAreaBuilder

Returns the current TextAreaBuilder instance.

Example:
C#
@(Html.Kendo().TextArea()
.Name("TextArea")
.Value("Value")
)