Events
The Telerik UI Signature for ASP.NET Core exposes multiple events that allow you to control and customize the behavior of the UI component.
For a complete example on basic Signature events, refer to the demo on using the events of the Signature.
Handling by Handler Name
The following example demonstrates how to subscribe to events by handler name.
@(Html.Kendo().Signature()
.Name("signature")
.Events(e => e
.Open("signature_open")
.Close("signature_close")
.Change("signature_change")
)
)
<kendo-signature name="signature"
on-open="signature_open"
on-close="signature_close"
on-change="signature_change"/>
function signature_open() {
// Handle the open event.
}
function signature_close() {
// Handle the close event.
}
function signature_change() {
// Handle the change event.
}
Handling by Template Delegate
The following example demonstrates how to subscribe to events by a template delegate.
@(Html.Kendo().Signature()
.Name("signature")
.Events(e => e
.Open(@<text>
function() {
// Handle the open event inline.
}
</text>)
.Change(@<text>
function() {
// Handle the change event inline.
}
</text>)
)
)
<kendo-signature name="signature"
on-open='function(e)
{
// Handle the open event inline.
}'
on-change='function(e)
{
// Handle the change event inline.
}'/>