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

Events

The TextArea for ASP.NET MVC 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>

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>)
        )
    )

Next Steps

See Also

In this article