New to Telerik UI for ASP.NET Core? Start a free 30-day trial
Index
Updated over 6 months ago
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.
Razor
    @(Html.Kendo().ButtonGroup()
        .Name("select-period")
        .Index(1)
        .Items(t =>
            {
                    t.Add().Text("Month");
                    t.Add().Text("Quarter");
                    t.Add().Text("Year");
            }))