Events
The ButtonGroup exposes a Select()
event that you can handle.
For a complete example on basic ButtonGroup events, refer to the demo on using the events of the ButtonGroup.
@using Kendo.Mvc.UI
@(Html.Kendo().ButtonGroup()
.Name("player")
.Items(t =>
{
t.Add().Text("Month");
t.Add().Text("Quarter");
t.Add().Text("Year");
})
.Events(ev => ev.Select("onSelect"))
)
<script>
function onSelect(e) {
console.log("selected index:" + e.indices);
}
</script>