Help with customize scheduler

1 Answer 88 Views
Grid
Paul
Top achievements
Rank 1
Paul asked on 08 Nov 2022, 05:39 PM

Hi, I want to show the time slot time under the cursor as you move about the scheduler. Similar to attached gif:

 

The problem is that when I navigate to a different day I can't re-bind the mouse move event. My code looks as follows, any help would be greatly appreciated.

Navigate:

EnableTimeTracking:

Thanks...

 

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 11 Nov 2022, 08:31 AM

Hello Paul,

To ensure that the .k-scheduler-content element is rendered by the time you are trying to bind mouse events to it, you could use s slight delay:

navigate: function(){
           setTimeout(function(){
                    EnableTimeTracking()
            })
},

Here is a small example based on the provided snippet, where the mouse events are successfully fired after the navigate event of the Scheduler is triggered.

I hope this helps.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or