ASP.NET Core TextArea Overview

Telerik UI for ASP.NET Core Ninja image

The TextArea is part of Telerik UI for ASP.NET Core, a professional grade UI library with 110+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

The Telerik UI TextArea TagHelper and HtmlHelper for ASP.NET Core are server-side wrappers for the Kendo UI TextArea widget.

The TextArea provides a set of default API configuration options that can be set during its initialization such as value, placeholder, and so on.

Basic Configuration

The following example demonstrates the basic configuration for the TextArea.

    @(Html.Kendo().TextArea()
        .Name("textarea") // The name of the TextArea is mandatory. It specifies the "id" attribute of the TextArea.
        .Value("John Doe") // Set the value of the TextArea.
        .Rows(5) // Sets the number of rows
    )
    <kendo-textarea name="textarea"
               value="John Doe"
                rows="5">
    </kendo-textarea>

Starting with the 2024 Q3 release, the HtmlHelper version of the component supports declarative initialization.

Functionality and Features

  • Labels—You can integrate a label HTML element within the boundaries of the TextArea.
  • RTL Support—The TextArea enables you to render its content content in a right-to-left direction for right-to-left languages.
  • Events—The TextArea allows you to handle its events and implement custom functionality.

To learn more about the appearance, anatomy, and accessibility of the TextArea, visit the Progress Design System documentation—an information portal offering rich component usage guidelines, descriptions of the available style variables, and globalization support details.

Next Steps

See Also

In this article