Our pure JavaScript Scheduler component


Post by dirkluijk »

We use the Bryntum Scheduler with a working time from 6 AM to 10 PM:
workingTime: {
  fromHour: 6,
  toHour: 22
}
Then we configure the headers to increment by 4 hours (to divide the 16 hours range in 4 chunks):
viewPreset: {
    headerConfig: {
        middle: {
            unit: 'hour',
            increment: 4
        }
    }
}
However, when we change apply changes to the view preset, it changes the working time from 6 AM to 8 AM.

I suspect that the Scheduler does the increment starting at 12 AM midnight, not the workingTime.fromHour.

Please let me know if I do something wrong, or if this is indeed a bug. ;)

Post by mats »

However, when we change apply changes to the view preset, it changes the working time from 6 AM to 8 AM.
What does this mean? Can you please upload a proper test case along with exact instructions to reproduce.

Post by dirkluijk »

Of course, please see https://jsfiddle.net/5rLfm72e/1/.
If you change the increment to 1 or 2, it correctly starts at 6 AM, but when changing to 4, it starts at 8 AM.

Another weird thing,

If I remove the "workingTime" and use a startDate/endDate with different times instead, it works, but then the grid lines are not anymore in sync with the header increments. See: https://jsfiddle.net/8ytsfqhr/.

Post by armandcolenati »

I also found one more bug, which I think is related to the one mentioned in this topic. I started from the first fiddle and I added a couple of buttons for switching the workingTime, but the timeaxis becomes buggy. Click on the first part button, then on the second part. I would expect it to render the ticks from 1pm until 10pm, but it renders from 1pm to 3pm (where 3pm was actually the end of the workingTime for the first part). After that, the scheduler doesn't react to the changes of workingTime anymore.

https://jsfiddle.net/wzhm5esn/

Post by dirkluijk »

I have a premium license for Bryntum Scheduler. Can this issue get any priority / how can I access the premium support section?

Post by mats »

To get access to Premium forums, you account manager need to add your email (the one you registered with in forums) to the license

Post by sergey.maltsev »

Hi, dirkluijk!

Please try TimeAxis generateTicks to create your own time axis.
https://www.bryntum.com/docs/scheduler/#Scheduler/data/TimeAxis#function-generateTicks

Please check this demo.
https://www.bryntum.com/examples/scheduler/timeaxis/

Post by dirkluijkO »

Awesome! This fixes all of our issues. Thanks.

Post Reply