This is a migrated thread and some comments may be shown as answers.

Get DateTime From Scheduler Ruler Click

2 Answers 46 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 30 Apr 2019, 05:08 PM

Is there any way to double click the ruler and get the time at the point of the cursor click, in order to schedule a new appointment at that time?  When the schedule gets crowded, it's easier to click on the ruler versus finding an empty spot at the desired time to click.

2 Answers, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 01 May 2019, 01:13 AM

I figured out a solution:

 

Private Sub RadScheduler1_MouseClick(sender As Object, e As MouseEventArgs) Handles RadScheduler1.MouseClick

If e.X < RadScheduler1.GetDayView().RulerWidth Then
                Dim point = New Point(RadScheduler1.GetDayView().RulerWidth + 1, e.Y)
                Dim cellDate = SchedulerUIHelper.GetCellAtPoint(point, RadScheduler1).Date()
               
End If

End Sub

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 01 May 2019, 07:13 AM
Hello, Jonathan,     

I am glad that the problem you were facing is now resolved. Indeed, the SchedulerUIHelper.GetCellAtPoint method is suitable for extracting the SchedulerCellElement at a certain location and then gets its date. 

If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Scheduler and Reminder
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or