New to Telerik UI for BlazorStart a free 30-day trial

The Telerik TextArea component.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class TelerikTextArea : TextBoxBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikInputBase<string>TextBoxBaseTelerikTextArea...

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members TextBoxBase.OnParametersSetAsync()TextBoxBase.Dispose()TextBoxBase.InitJsComponentAsync()TextBoxBase.OnParametersSetInternalAsync()TextBoxBase.OnAfterRenderInternalAsync(bool)TextBoxBase.UpdateValueDebounced(string)TextBoxBase.TitleTextBoxBase.PlaceholderTextBoxBase.DataSmartPasteDescriptionAttributeTextBoxBase.WidthTextBoxBase.NameTextBoxBase.DebounceDelayTextBoxBase.ReadOnlyTextBoxBase.AutoCapitalizeTextBoxBase.SpellCheckTelerikInputBase<string>.OnInitializedAsync()TelerikInputBase<string>.FocusAsync()TelerikInputBase<string>.CascadedEditContextTelerikInputBase<string>.FloatingLabelTelerikInputBase<string>.IdTelerikInputBase<string>.EnabledTelerikInputBase<string>.TabIndexTelerikInputBase<string>.ValueExpressionTelerikInputBase<string>.ValueChangedTelerikInputBase<string>.ValueTelerikInputBase<string>.OnChangeTelerikInputBase<string>.OnBlurTelerikInputBase<string>.AriaLabelTelerikInputBase<string>.AriaLabelledByTelerikInputBase<string>.AriaDescribedByTelerikInputBase<string>.ValidateOnTelerikInputBase<string>.InputModeBaseComponent.ShouldRender()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)...

Constructors

C#
public TelerikTextArea()

Properties

Specifies the positioning of the elements (adornments) in the prefix and suffix templates of the TelerikTextArea component. The possible values are: Horizontal (default) - the elements within the prefix and suffix templates will be ordered in a row. Vertical - the elements within the prefix and suffix templates will be ordered in a column.

C#
[Parameter]
public TextAreaAdornmentsFlow AdornmentsFlow { get; set; }

Specifies the flow of the prefix and suffix templates of the TelerikTextArea component. The possible values are: Horizontal (default) - the prefix and suffix templates will be arranged in a row, with the text area positioned between them. Vertical - the prefix and suffix templates will be arranged in a column, with the text area positioned between them.

C#
[Parameter]
public TextAreaAdornmentsOrientation AdornmentsOrientation { get; set; }

[Accessibility] Defines the autocomplete HTML attribute of the component.

C#
[Parameter]
public string AutoComplete { get; set; }

Sets the cols attribute of the textarea.

C#
[Parameter]
public int? Cols { get; set; }

Enables WebMCP tool registration for this TextArea. When true, TextArea operations are exposed as tools discoverable by AI models through the browser. Default value is false.

C#
[Parameter]
public bool EnableWebMcpTools { get; set; }

Specifies the fill mode of the TextArea.

C#
[Parameter]
public override string FillMode { get; set; }

Overrides: TextBoxBase.FillMode

Sets the maxlength attribute of the textarea.

C#
[Parameter]
public int? MaxLength { get; set; }

Specifies the TextArea's resize behavior. Default behavior is the one set by the browser.

C#
[Parameter]
public TextAreaResizeMode? ResizeMode { get; set; }

Specifies the roundness of the TextArea.

C#
[Parameter]
public override string Rounded { get; set; }

Overrides: TextBoxBase.Rounded

Sets the rows attribute of the textarea.

C#
[Parameter]
public int? Rows { get; set; }

Defines whether the prefix separator should be shown. The default value is true.

C#
[Parameter]
public bool ShowPrefixSeparator { get; set; }

Defines whether the suffix separator should be shown. The default value is true.

C#
[Parameter]
public bool ShowSuffixSeparator { get; set; }

Specifies the Size of the text TextArea.

C#
[Parameter]
public override string Size { get; set; }

Overrides: TextBoxBase.Size

The content of the TextArea prefix.

C#
[Parameter]
public RenderFragment TextAreaPrefixTemplate { get; set; }

Provides configuration for WebMCP tools, such as a Name to distinguish this TextArea from others on the same page.

C#
[Parameter]
public RenderFragment TextAreaSettings { get; set; }

The content of the TextArea suffix.

C#
[Parameter]
public RenderFragment TextAreaSuffixTemplate { get; set; }

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters:firstRenderboolReturns:

Task

Overrides: TextBoxBase.OnAfterRenderAsync(bool)

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

C#
public override Task SetParametersAsync(ParameterView parameters)
Parameters:parametersParameterViewReturns:

Task

Overrides: TelerikInputBase<string>.SetParametersAsync(ParameterView)