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

Events

The TextArea for ASP.NET Core exposes the Change() event that you can use for capturing the TextArea's value during user interaction.

For a complete example on TextArea events, refer to the demo on using the events of the TextArea.

Handling by Handler Name

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

    @(Html.Kendo().TextArea()
        .Name("description")
        .Events(e => e.Change("onChange"))
    )

    <script>
        function onChange(e){
            // Handle the TextArea change event.
        };
    </script>
    <kendo-textarea name="description" on-change="onChange">
    </kendo-textarea>

    <script>
        function onChange(e){
            // Handle the TextArea change event.
        };
    </script>

Handling by Template Delegate

The following example demonstrates how to subscribe to events by a template delegate.

    @(Html.Kendo().TextArea()
        .Name("description")
        .Events(e => e.Change(@<text>
                function() {
                    // Handle the TextArea change event inline.
                }
            </text>)
        )
    )
    <kendo-textarea name="description" on-change="function() {
                        // Handle the TextArea change event inline.
                  }">
    </kendo-textarea>

Next Steps

See Also

In this article