Our pure JavaScript Scheduler component

Post by dphilip@kinaxis.com »

The calendar config I use works well for almost all cases, except when I try to drop an event very close to the latest datetime of availability
Here is the calendar config error I get <CalendarID> calendar does not provide any working time intervals, but as you can see the config I have attached below, I am providing a working time interval.

CalendarConfigError.jpg (34.27 KiB) Viewed 76 times

This is the config for the calendar:

CalendarConfig.jpg (30.46 KiB) Viewed 76 times

Am I missing some config?

Post by alex.l »

That might be caused by many reasons. As example, there is not enough space of working period to schedule the event. As example, you have constraints for startDate of the task you try to schedule and it cannot be scheduled in available period.
But better to check what exactly is going on. Could you please attach full JSON with data you used and steps to reproduce this?

All the best,

Post by dphilip@kinaxis.com »

I see the same error in CalendarHighlight example at this location: https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/feature/CalendarHighlight

Steps to reproduce:

  1. Go to the following url:https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/feature/CalendarHighlight
  2. Locate the Drag me example
  3. Move the Drag me event outside the available blue area

you get the same Calendar Config error.
I hope this helps.

CalendarConfigError.gif (1.97 MiB) Viewed 54 times

Post by marcio »

Hey dphilip@kinaxis.com,

That happens because you're trying to move your event outside the working calendar pre-defined.

It's expected to work that way.

What's your suggestion/expectation about how that should work??

Best regards,

Post by dphilip@kinaxis.com »

When we drag an event outside of the available zone, it should automatically "cancel the changes and do nothing".
Is there a way to configure SchedulerPro to "pick" this option, without the error dialog?

Post by alex.l »

Yes, sure. Please see docs for https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/ProjectModel#event-schedulingConflict event. You can subscribe on it or even better on https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/ProjectModel#event-emptyCalendar
and resolve conflict automatically without a dialog.

project.on('emptyCalendar', ({ schedulingIssue, continueWithResolutionResult }) => {
    // apply the first resolution and continue

All the best,

Post Reply