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.

        .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"

Functionality and Features


Here is a demo on using some basic events of the TextArea. For a full list, refer to the TextArea events documentation in the API section.

The following example demonstrates how to subscribe to events by a handler name.

        .Events(e => e
<kendo-textarea name="textarea"
  function textarea_change() {
      // Handle the change event.

Referencing Existing Instances

To reference an existing Telerik UI TextArea instance, use the jQuery.data() method. Once a reference is established, use the TextArea client-side API to control its behavior.

The following example demonstrates how to access an existing TextArea instance.

  // Place the following after your Telerik UI TextArea for ASP.NET Core declaration.
  $(function() {
      // The Name() of the TextArea is used to get its client-side instance.
      var textarea = $("#textarea").data("kendoTextArea");

See Also

In this article