setDataSource

Sets the data source of the widget.

Parameters

dataSource kendo.data.SchedulerDataSource

The data source to which the widget should be bound.

Example - set the data source

<div id="scheduler"></div>
<script>
$("#scheduler").kendoScheduler({
  date: new Date("2013/6/6")
});
var scheduler = $("#scheduler").data("kendoScheduler");
var dataSource = new kendo.data.SchedulerDataSource({
  data: [
    {
      id: 1,
      start: new Date("2013/6/6 08:00 AM"),
      end: new Date("2013/6/6 09:00 AM"),
      title: "Interview"
    }
  ]
});
scheduler.setDataSource(dataSource);
</script>
In this article