In our scheduler, events have almost no space in-between them and following events of the same resource are also without space. Is there a way to create an event when all the space of the scheduler is taken by other events (like in the picture)?
I need a way to right click "behind" the existing event, or something comparable to create events when there is no empty space.
Bildschirmfoto 2025-05-12 um 15.04.45.png (23.7 KiB) Viewed 165 times
To create a new event when there is no empty space available in the scheduler, you can use the ScheduleMenu feature (https://bryntum.com/products/schedulerpro/docs/#Scheduler/feature/ScheduleMenu). This feature allows you to add a context menu to the scheduler, which can include an option to create a new event at the clicked position, even if it's on top of existing events.
Here's a basic example of how you can configure the ScheduleMenu to include an "Add Event" option:
Thanks for the help. Is it also possible to open the taskEditor before creating the new event in the database? I need the same functionality as in schedulerMenuFeature, where I can right click on the scheduler -> create event and can modify the event before I safe it.
Yes, you can open the event editor before saving the new event. You can use the editEvent function to open the editor for a new event configuration. Here's how you can modify the ScheduleMenu to achieve this:
Hi, I am trying to get "editEvent" to work, but it seems like the method does not exist. "Cannot read properties of undefined (reading 'editEvent')". But when I log the scheduler, editEvent is there:
Can you please put a debugger there and see what is the value of scheduler? Because it seems like the scheduler instance is undefined and when you are calling editEvent. Or maybe it looks like scheduler.features.eventEdit is undefined, just put a debugger there and see what is wrong.