select

Gets or sets the events (or slots) which are selected.

Parameters

events Array

The Uids of events which should be selected. List of the available events can be get using the data method.

options Object
options.events Array

The Uids of events which should be selected. List of the available events can be get using the data method.

options.resources Array

The resource values (groups) in which the events or slots should be selected. If no resources are defined the first event or slot that match the condition will be selected. This option is not supported in "agenda" view.

options.start Date

The start time from which the selection of the slots begins. If 'events' argument is provided the slot selection is ignored.

options.end Date

The end time in which the selection of the slots ends. If 'events' argument is provided the slot selection is ignored.

options.isAllDay Boolean

Allows selection of slots in day and time slots of the view (applicable in day/week/workweek views).

Example - select event

<div id="scheduler"></div>
<script>
$("#scheduler").kendoScheduler({
  date: new Date("2013/6/6"),
  selectable: true,
  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");

//find event for selection:
var event = scheduler.data()[0];
scheduler.select([event.uid]);

//log selected event data
console.log(scheduler.select());
</script>
In this article