Disabled Button

The business logic of an application often requires a certain button to be temporarily disabled or enabled.

You can initially configure the Button as disabled either through its .Enable() setting. The Button can also be disabled or enabled at any time with JavaScript by using its enable() method with a Boolean argument.

The following example demonstrates how to enable and disable the Button.


        @(Html.Kendo().Button()
            .Name("disabledButton")
            .Enable(false)
            .Content("Disabled button"))

        <%= Html.Kendo().Button()
            .Name("disabledButton")
            .Enable(false)
            .Content("Disabled button") %>

Referencing Existing Instances

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

See Also

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