Scheduler Drag&Drop to later dates

2 Answers 88 Views
Scheduler and Reminder
Paul Dell
Top achievements
Rank 1
Iron
Paul Dell asked on 25 May 2023, 01:50 PM

Hello,

is it possible to somehow activate a funktion to drag and hold an appointment to the latest possible date and the scheduler will after a few seconds of holding the appointment in this position automatically change the displayed calender to for example the next week so that you can drop the appointment here?

Regards,

Paul

2 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 30 May 2023, 08:47 AM

Hello Paul,

In general, you can use the AppointmentDraggingBehavior events to achieve this scenario. You could subscribe to the AppointmentMoving event which will be called while dragging an appointment over a cell. If the user stops for several seconds, you can change the view. Here you can use Timer to catch this. I am not sure what you mean by the latest possible dates, but you can get the cell date from its Date property. Also, keep in mind that changing the view while dragging will reset the visual feedback. it will be good to cancel the drag-drop after changing the view.

For your convenience, I have created a sample project which demonstrates this. In the AppointmentMoving event handler, I check if the Date is 1 of June. If it is and the user holds drag appointment over a cell for 2 seconds, the view is changed from day to week. This approach is just an example of how you can use drag-drop events. You can extend it in your application to cover all your requirements.

Regards,
Dinko | Tech Support Engineer
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.

0
Paul Dell
Top achievements
Rank 1
Iron
answered on 30 May 2023, 12:21 PM

Hello Dinko,

thanks a lot that helped me.

Regards,

Paul

Tags
Scheduler and Reminder
Asked by
Paul Dell
Top achievements
Rank 1
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Paul Dell
Top achievements
Rank 1
Iron
Share this question
or