New to Telerik UI for ASP.NET Core? Start a free 30-day trial
Events
You can subscribe to all client-side events and then use them to further customize the behavior of the Stepper.
The example below demonstrates how to handle the Activate
and Select
events that the Stepper triggers when a specified step is selected.
Razor
@using Kendo.Mvc.UI
@(Html.Kendo().Stepper()
.Name("stepper")
.Steps(s =>
{
s.Add().Label("First step");
s.Add().Label("Second step");
s.Add().Label("Third step");
s.Add().Label("Fourth step");
s.Add().Label("Fifth step");
})
.Events(events => events.Activate("onActivate").Select("onSelect"))
)
<script>
function onActivate(e) {
kendoConsole.log("Activated: " + e.step.options.label);
}
function onSelect(e) {
kendoConsole.log("Selected: " + e.step.options.label);
}
</script>