Our powerful JS Calendar component


Post by lx0 »

In the documentation for the CRUDManager, there is a note that backward compatibilty mode is enabled when using events with resourceId to only support single assignments only: https://www.bryntum.com/products/gantt/docs/api/Scheduler/data/CrudManager#assignment-store

In our project, we are using single resource assignments only. That mode is making backend calls easier for us. This works fine when providing events with resourceId on load.

However when opening a calendar for a resource without any events, the CRUDManager creates an assignment store entry when creating a new event. Can the single resource assignment mode also be enabled without any events in the store?


Post by ghulam.ghous »

Hi @lx0,

If I understood correctly, you want to enforce the single resource assignment by default, right? If yes then you can setup this on the eventStore with singleAssignment config documented here https://bryntum.com/products/calendar/docs/api/Scheduler/data/mixin/EventStoreMixin#config-singleAssignment.

Regards,
Ghous


Post by lx0 »

Hi Ghous,

Thanks for the hint. Works like a charm!

BR,
Alex


Post Reply