Kendo Scheduler Add event when a user selects a time range

1 Answer 101 Views
Scheduler
Vlad
Top achievements
Rank 1
Vlad asked on 10 Mar 2023, 10:42 PM

I want to trigger an event add when a user highlights a time range on a scheduler.

I can pick up when the user lets go of the mouse on the calendar using

        scheduler.wrapper.on("mouseup touchend", ".k-scheduler-table td, .k-event", function (e) {

        });

but i can't figure out how to get the selected slot range from there.

seem to be able to get the end time of the selected range via the slotbyelement(e.target), but i can't figure out how to get the start time.

 


 

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 15 Mar 2023, 02:35 PM

Hello, Vlad,

Could you please try to bind to the mousedown event as well, so that you can get the startDate from there? Then, in the mouseup event you will have both start and end. Here is a small example to demonstrate.

Let me know if I am missing something.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Scheduler
Asked by
Vlad
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or