Premium support for our pure JavaScript UI components


Post by mightym »

I dug around in the forum and docs but I'm not sure if I'm overlooking something:

In my Scheduler Config I'm setting

startDate: new Date()

which works fine, the scheduler gets centered on today.

But when I'm setting on my scheduler pro instance via

scheduler.startDate = new Date()

(The scheduler is initialized and running) the scheduler is somehow shifted about 2 months into the future.

Someone a hint for me why this happens?


Post by alex.l »

Hi,

To know what exactly happened, we need to reproduce this.
Please try to reproduce this behaviour in one of our online examples and post steps to reproduce here.

All the best,
Alex


Post by mightym »

I modified the react-events example for you. Its attached to this reply.
You should see a red div at the top which says "Set Scheduler Date to today date". Click it, scroll around in the Scheduler und click again. You should see that the scheduler ist not going to todays date but somewhere else.

Attachments
react-events.zip
(2.28 MiB) Downloaded 15 times

Post by tasnim »

Hi,

Thanks for the test case. That sounds like a bug. We'll check deeply. Here is the ticket to track progress https://github.com/bryntum/support/issues/6404

All the best :),
Tasnim


Post by johan.isaksson »

Hi,

Investigating this, I think what you are looking for is setting https://bryntum.com/products/scheduler/docs/api/Scheduler/view/Scheduler#config-visibleDate?

startDate & endDate on the scheduler controls the length of the time axis. With infinite scroll, it is infinite :)

Hope that helps! I will clarify this in docs.

Best regards,
Johan Isaksson

Post Reply