kendoKeydown

Triggered when the user presses a keyboard key while the Scheduler is focused.

The event handler function context (available via the this keyword) will be set to the widget instance.

Event Data

e.sender kendo.ui.Scheduler

The widget instance which fired the event.

e.preventKendoKeydown Boolean

If set to true prevents the default Scheduler keydown logic.

e.preventDefault Function

If invoked cancels the default action that belongs to the keydown event.

Example - subscribe to the "kendoKeydown" event during initialization

<div id="scheduler"></div>
<script>
  $("#scheduler").kendoScheduler({
    date: new Date("2013/6/6"),
    views: [ "day", "month" ],
    dataSource: [
      {
        id: 1,
        start: new Date("2013/6/6 08:00 AM"),
        end: new Date("2013/6/6 09:00 AM"),
        title: "Interview"
      }
    ],
    kendoKeydown: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
      console.log(e.keyCode);
    }
  });
</script>

Example - subscribe to the "kendoKeydown" event after initialization

<div id="scheduler"></div>
<script>
  $("#scheduler").kendoScheduler({
    date: new Date("2013/6/6"),
    views: [ "day", "month" ],
    dataSource: [
      {
        id: 1,
        start: new Date("2013/6/6 08:00 AM"),
        end: new Date("2013/6/6 09:00 AM"),
        title: "Interview"
      }
    ],
  });
  var widget = $("#scheduler").data("kendoScheduler");
  widget.bind("kendoKeydown", function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(e.keyCode);
  });
</script>
In this article
kendoKeydown
Not finding the help you need?
Contact Support