Page 1 of 1

Scheduler-Pro - Dependencies force start time of events on setup

Posted: Mon Sep 27, 2021 5:51 pm
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?

Re: Scheduler-Pro - Dependencies force start time of events on setup

Posted: Mon Sep 27, 2021 8:48 pm
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)


Re: Scheduler-Pro - Dependencies force start time of events on setup

Posted: Tue Sep 28, 2021 9:47 am
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?


Re: Scheduler-Pro - Dependencies force start time of events on setup

Posted: Tue Sep 28, 2021 1:41 pm
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


Re: Scheduler-Pro - Dependencies force start time of events on setup

Posted: Mon Oct 04, 2021 10:52 am
by giovanni

Thanks Alex, you have been really helpful!
Giovanni