Drag and drop events on non working days

Hi,

I have an app that uses the scheduler component with a month timeline to display and edit events. When I drag and drop events that last multiple days, it doesn't matter if some of those days are non working days, they still count as "working days".

Would it be possible to make the scheduler component behave similarly to the gantt component so that when drag&dropping events on non working days will automatically resize them so that their actual lenght is on working days?

Example: A 2 days event will take space over 2 working days.


This is an event of 2 days, white cells are working days and dark gray cells are non working days.



If I move the event to the last working day I would like that it will also finish on a working day, taking effectively 2 working days.


Do you think this is achievable?


Thank you in advance.

Best regards,

Matteo Messmer


3 Replies 1 reply marked as answer

RM Ruksar Moosa Sait Syncfusion Team August 24, 2022 10:31 AM UTC

Hi Matteo ,


We have checked on your requirement and let you know that Currently, we didn’t have built-in support to drag & dropping events on non-working days will automatically resize them so that their actual length is on working days. Hence you can customize your requirement using the schedule dragStop event of the Schedule. Let us know if you need further assistance.


API: https://ej2.syncfusion.com/react/documentation/api/schedule/#dragstop


Regards,

Ruksar Moosa Sait


Marked as answer

MA matteomessmer September 2, 2022 07:08 AM UTC

Thank you! I implemented it.



VD Vinitha Devi Murugan Syncfusion Team September 5, 2022 05:02 AM UTC

Hi matteomessmer,


Thanks for your update.


You are most welcome 😊. Please let us know, if you need any further assistance.


Regards,

Vinitha


Loader.
Up arrow icon