Edit this page

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy