Our powerful JS Calendar component


Post by conn.finn »

Hello,

I was wondering if there is a native way to limit event rescheduling to within the day of the event itself. We currently have code to cancel any rescheduling that stretches into multiple days when you let go of the mouse (as shown in the screen recording) but I was wondering if there was potentially a way to do this with simply configuration since this way still allows the event to display as if it will be dragged to the next day. I didn't see anything in the docs so I expect the answer is no, but I just wanted to confirm before reporting back.

Thanks

Attachments
Screen Recording 2023-12-11 at 1.20.06 PM.mov
(252.44 KiB) Downloaded 35 times

Post by marcio »

Hey,

As you expected, we don't have a native way to set that, but you can use validation using this event https://bryntum.com/products/calendar/docs/api/Scheduler/feature/EventResize#event-beforeEventResizeFinalize and not allow the user to finish the resize of the event in multiple days.

Best regards,
Márcio


Post by Animal »

This would be a Feature Request: https://github.com/bryntum/support/issues/8030

I propose a config option which would block conversion of intra day (within one day) events to inter day (covering more than one day) events.

It would also disable conversion of inter day events to intra day events. So maybe

resizeInterDay : false

could prevent a resize drag gesture changing column in DayView, MonthView and CalendarRow. Would that cover the use case?


Post by conn.finn »

That would be great! A feature like that would certainly cover our use case, thanks.


Post Reply