slotByPosition

Get the time slot from given horizontal (x) and vertical (y) position.

Parameters

xPosition Number

The horizontal position.

yPosition Number

The vertical position.

Returns

Object The time slot.

Example - get slot and it's startDate and endDate

<div id="scheduler"></div>
<script>
$("#scheduler").kendoScheduler({
  date: new Date("2013/6/6")
});
var scheduler = $("#scheduler").data("kendoScheduler");
var slot = scheduler.slotByPosition(100,100);

  /* The result can be observed in the DevTools(F12) console of the browser. */
  console.log("slot startDate: " + slot.startDate);
  /* The result can be observed in the DevTools(F12) console of the browser. */
  console.log("slot endDate: " + slot.endDate);
</script>
In this article