Events
You can subscribe to all ProgressBar events. For a complete example on basic ProgressBar events, refer to the demo on using the events of the ProgressBar.
Handling by Handler Name
The following example demonstrates how to subscribe to events by a handler name.
@(Html.Kendo().ProgressBar()
.Name("progressBar")
.Events(e => {
e.Change("onChange");
e.Complete("onComplete");
})
)
<script>
function onChange(e) {
// Handle the change event.
}
function onComplete(e) {
// Handle the complete event.
}
</script>
<kendo-progressbar name="progressBar" on-change="onChange" on-complete="onComplete"/>
<script>
function onChange(e) {
// Handle the change event.
}
function onComplete(e) {
// Handle the complete event.
}
</script>
Handling by Template Delegate
The following example demonstrates how to subscribe to events by a template delegate.
@(Html.Kendo().ProgressBar()
.Name("progressBar")
.Events(e => e.Change(@<text>
function() {
// Handle the change event.
}
</text>)
)
)