enable

Enables or disables a DateTimePicker.

Parameters

enable Boolean

Enables (true or undefined) or disables (false) a DateTimePicker.

Example - disable DateTimePicker widget

<input id="datetimepicker" />
<script>
$("#datetimepicker").kendoDateTimePicker();

var datetimepicker = $("#datetimepicker").data("kendoDateTimePicker");

datetimepicker.enable(false);
</script>

Example - enable DateTimePicker widget

<input id="datetimepicker" />
<script>
$("#datetimepicker").kendoDateTimePicker();

var datetimepicker = $("#datetimepicker").data("kendoDateTimePicker");

datetimepicker.enable();
</script>
In this article