Our pure JavaScript Scheduler component


Post by giovanni »

Hello,

I've an issue with the events's StartDate when I pass the dependencies to the scheduler-pro component.
I'm providing the initial state of the app passing to the scheduler-pro components :

  • scheduled events: with start and end datetime already setted
  • dependencies
    When the scheduler-pro component load the dependencies it force the start datetime of the Events on the end datetime of the previuous.
    There is some way to avoid this behavior and keep the originals start datetime?

Post by mats »

If you want events to be manually scheduled, please set https://bryntum.com/docs/scheduler-pro/#SchedulerPro/model/EventModel#field-manuallyScheduled in their data (or in your Event model class)


Post by giovanni »

Hello Mats thanks for your reply.
I tried to set the events on manualyScheduled, but this solution cant't work with my scenario:

  • I want to keep the starting dates on setup (I think that this can be achive by disallowing events overlap; I tried to disable the allowEventsOverlap prop but doesen't seem to work )

  • I want to keep the dependencies constraint while the user is using the app (moving events around ecc...)

With your advice I achive only the first goal. So I came back with more questions:

  • It's possible to disable the mannualyScheduled prop once the events are loaded avoiding the constraint to force dates?

  • There is some other way to avoid constraints on setup?

  • There is some way to make the scheduler avoid events overlap on setup so it won't move my scheduled events?


Post by alex.l »

Take a look on https://bryntum.com/docs/scheduler-pro/#SchedulerPro/model/EventModel#field-constraintType
It has "mustfinishon" and "muststarton" types as well.
https://bryntum.com/docs/scheduler-pro/#Scheduler/view/SchedulerBase#config-allowOverlap is true by default.
There is a https://bryntum.com/docs/scheduler-pro/#Scheduler/model/DependencyBaseModel#field-lag option for dependencies.
So, there is 2 ways - auto-scheduled events or manually scheduled events. But you can set data to have exactly what you want using auto-scheduling.

All info about events scheduling is here: https://bryntum.com/docs/scheduler-pro/#../engine/schedulerpro_events_scheduling.md

All the best,
Alex


Post by giovanni »

Thanks Alex, you have been really helpful!
Giovanni


Post Reply