close

Fires when the calendar or the time drop-down list is closed

Event Data

e.view String

The view which is closed. Possible values are "date" and "time".

e.sender kendo.ui.DateTimePicker

The widget instance which fired the event.

Example - subscribe to the "close" event during initialization

<input id="datetimepicker" />
<script>
$("#datetimepicker").kendoDateTimePicker({
    close: function(e) {
        if (e.view === "date") {
            e.preventDefault(); //prevent popup closing
        }
    }
});
</script>

Example - subscribe to the "close" event after initialization

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

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

datetimepicker.bind("close", function(e) {
    if (e.view === "date") {
        e.preventDefault(); //prevent popup closing
    }
});
</script>
In this article
Not finding the help you need?