ButtonGroup HtmlHelper Overview

The Telerik UI ButtonGroup HtmlHelper for ASP.NET MVC is a server-side wrapper 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");
                }))

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

Functionality and Features

Events

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

Referencing Existing Instances

To reference an existing ButtonGroup instance, use the jQuery.data() configuration option. Once a reference is established, use the ButtonGroup client-side API.

See Also

In this article
Not finding the help you need? Improve this article