Events
The Telerik UI Signature for ASP.NET MVC 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")
)
)
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>)
)
)