Index
You can configure the initially selected index of the Telerik UI ButtonGroup by using its index
property.
You can also select an index through the select()
method with a Integer argument.
The following example demonstrates how to select a button by its index.
@(Html.Kendo().ButtonGroup()
.Name("select-period")
.Index(1)
.Items(t =>
{
t.Add().Text("Month");
t.Add().Text("Quarter");
t.Add().Text("Year");
}))
<kendo-buttongroup name="player"
index="1">
<buttongroup-items>
<item text="Month"></item>
<item text="Quarter"></item>
<item text="Year"></item>
</buttongroup-items>
</kendo-buttongroup>