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")
});

/* The scheduler in this example should be fully rendered correct results of slotByPosition()  */
setTimeout(() => {
    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);
}, 200);
</script>
In this article