Edit this page

save

Fired when the user saves a scheduler event by clicking the "save" button.

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

Event Data

e.container jQuery

The jQuery object representing the container element. That element contains the editing UI.

e.event kendo.data.SchedulerEvent

The event which is saved.

e.preventDefault Function

If invoked prevents the save action.

e.sender kendo.ui.Scheduler

The widget instance which fired the event.

Example - subscribe to the "save" 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"
    }
  ],
  save: function(e) {
    console.log("Saving", e.event.title);
  }
});
</script>

Example - subscribe to the "save" event after initialization

<div id="scheduler"></div>
<script>
function scheduler_save(e) {
  console.log("Saving", e.event.title);
}
$("#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 scheduler = $("#scheduler").data("kendoScheduler");
scheduler.bind("save", scheduler_save);
</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