How to restrict the start and end times of an appointment?

1 Answer 7 Views
ScheduleView
Denny
Top achievements
Rank 1
Denny asked on 29 Apr 2024, 04:52 AM
How to restrict the start and end times of an appointment to be at least 10 minutes apart as an integer multiple (e.g., 10, 20, 30, etc.)?

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 01 May 2024, 11:06 AM

Hello Denny,

To achieve this requirement, you could create a new class that extends the ScheduleViewDragDropBehavior object and overrides the CanResize method. In it, you could check the start and end values of the appointment and return false if they are lower than 10 minutes (or a different span depending on your requirements).

I hope the provided information will be of help to you.

Regards,
Stenly
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
ScheduleView
Asked by
Denny
Top achievements
Rank 1
Answers by
Stenly
Telerik team
Share this question
or