Edit this page

enable

Enable/Disable the DatePicker widget.

Parameters

enable Boolean

The argument, which defines whether to enable/disable the DatePicker.

Example - disable DatePicker widget

<input id="datepicker" />
<script>
$("#datepicker").kendoDatePicker();

var datepicker = $("#datepicker").data("kendoDatePicker");

datepicker.enable(false);
</script>

Example - enable DatePicker widget

<input id="datepicker" />
<script>
$("#datepicker").kendoDatePicker();

var datepicker = $("#datepicker").data("kendoDatePicker");

datepicker.enable(true);
</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