close

Closes the calendar or the time drop-down list.

Parameters

view String

The view of the DateTimePicker, expressed as a string. Available views are "time" and "date".

Example - close the calendar popup

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

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

$("#close").click(function() {
    datetimepicker.close("date");
});
</script>

Example - close the time popup

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

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

$("#close").click(function() {
    datetimepicker.close("time");
});
</script>
In this article