view

Gets or sets the current Scheduler view.

To get the current Scheduler view name, use the viewName method.

Parameters

type String (optional)

The view type to select.

Returns

kendo.ui.SchedulerView the current Scheduler view.

Example - set the current view

<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 scheduler = $("#scheduler").data("kendoScheduler");
scheduler.view("month");
</script>
In this article
Not finding the help you need? Improve this article