New to Telerik UI for ASP.NET MVCStart a free 30-day trial

ASP.NET MVC ButtonGroup Overview

The Telerik UI ButtonGroup HtmlHelper for ASP.NET MVC is a server-side wrapper for the Kendo UI ButtonGroup widget.

The ButtonGroup renders a series of buttons together on a single line.

Initializing the ButtonGroup

The following example demonstrates how to initialize the ButtonGroup.

Razor
        @(Html.Kendo().ButtonGroup()
                .Name("select-period")
                .Items(t =>
                {
                        t.Add().Text("Month");
                        t.Add().Text("Quarter");
                        t.Add().Text("Year");
                }))

Functionality and Features

  • Disabled ButtonGroup—The Enable() method allows you to render the ButtonGroup as disabled until certain requirements are met.
  • Icon ButtonGroup—To visually enhance the content of the buttons, you can use the Icon() method and add icons.
  • Index—Using the Index() property allows you to configure the initially selected index of the ButtonGroup component.
  • Selection—You can control the number of buttons that the user can select in each ButtonGroup.
  • Events—You can handle the ButtonGroup events and implement custom functionalities.

To learn more about the appearance, anatomy, and accessibility of the ButtonGroup, visit the Progress Design System documentation—an information portal offering rich component usage guidelines, descriptions of the available style variables, and globalization support details.

Next Steps

See Also