views.name String

The name of the view. Typically, used to get the name of the currently selected view via the view method.

Example - select a 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");
  var viewName = scheduler.view().name;

  alert(viewName)
</script>
In this article
Not finding the help you need? Improve this article