New to Telerik UI for ASP.NET MVC? Start a free 30-day trial
Group
The ASP.NET MVC ToggleButton component exposes the ability to group several instances into one distinguished group. This gives you the advantage of molding several ToggleButton instances and accessing them altogether via the data-group
attribute, which will be rendered for the elements.
The following example illustrates how to enable the group functionality
Razor
@(Html.Kendo().ToggleButton()
.Name("volumeUpBtn")
.Group("volumes")
.Selected(true)
.Content("Increase volume")
)
@(Html.Kendo().ToggleButton()
.Name("volumeMuteBtn")
.Group("volumes")
.Content("Mute volume")
)