Edit this page

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

console.log("slot startDate: " + slot.startDate);
console.log("slot endDate: " + slot.endDate);
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy