New to Kendo UI for jQueryStart a free 30-day trial

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 property or by initializing it from an element which has a disabled="disabled" HTML attribute. The Button can also be disabled or enabled at any time with JavaScript by using its enable() method with a Boolean argument. For more information on the enable property and the enable method, refer to the Button API.

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

html
	<button type="button" id="editButton">Edit</button>

	<script>
	$(function(){
		var editButton = $("#editButton").kendoButton({
			enable: false
		}).data("kendoButton");

		// ...

		// Enable the button.
		editButton.enable(true);
	});
	</script>

See Also

In this article
See Also
Not finding the help you need?
Contact Support