open

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

Event Data

e.view String

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

e.sender kendo.ui.DateTimePicker

The widget instance which fired the event.

Example - subscribe to the "open" event during initialization

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

Example - subscribe to the "open" event after initialization

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

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

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