New to Telerik UI for ASP.NET Core? Download free 30-day trial

Disabled ButtonGroup

The ButtonGroup provides options for setting its enabled and disabled state.

To configure the ButtonGroup as initially disabled, use its .Enable() setting. The ButtonGroup can also be disabled or enabled with JavaScript by using its .Enable() method with a Boolean argument.

The following example demonstrates how to enable and disable the ButtonGroup over the .Enable() configuration.

    @(Html.Kendo().ButtonGroup()
        .Name("select-period")
        .Enable(false)
        .Items(t =>
            {
                    t.Add().Text("Month");
                    t.Add().Text("Quarter");
                    t.Add().Text("Year");
            }))
    <kendo-buttongroup name="player"
                    enable="false">
        <buttongroup-items>
            <item text="Month"></item>
            <item text="Quarter"></item>
            <item text="Year"></item>
        </buttongroup-items>
    </kendo-buttongroup>

See Also

In this article