ButtonGroup Overview

Telerik UI for ASP.NET Core Ninja image

The ButtonGroup is part of Telerik UI for ASP.NET Core, a professional grade UI library with 110+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

The Telerik UI ButtonGroup TagHelper and HtmlHelper for ASP.NET Core are server-side wrappers for the Kendo UI ButtonGroup widget.

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

Initializing the ButtonGroup

The following example demonstrates how to initialize the ButtonGroup.

        @(Html.Kendo().ButtonGroup()
                .Name("select-period")
                .Items(t =>
                {
                        t.Add().Text("Month");
                        t.Add().Text("Quarter");
                        t.Add().Text("Year");
                }))
    <kendo-buttongroup name="player">
        <buttongroup-items>
            <item icon="play" text="Play" selected="true"></item>
            <item icon="pause" text="Pause" enabled="false"></item>
            <item icon="stop" text="Stop"></item>
        </buttongroup-items>
    </kendo-buttongroup>

Functionality and Features

Events

For a complete example on basic ButtonGroup events, refer to the demo on using the events of the ButtonGroup.

See Also

In this article