New to Telerik UI for ASP.NET Core? Start a 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.
Razor
@(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.
Razor
@(Html.Kendo().TextArea()
.Name("description")
.Events(e => e.Change(@<text>
function() {
// Handle the TextArea change event inline.
}
</text>)
)
)