Our powerful JS Calendar component


Post by tdset »

Hello,

We're using the timeline view (for which the client purchased a Scheduler license) and if we try to use loadOnDemand, the calendar goes into a fetch loop.

To reproduce the issue, please use this example: https://bryntum.com/examples/calendar/bigdataset/

If you add:

loadOnDemand: true

to the "features" object, the calendar will fetch events whenever you change the context (the month, the week, etc), as expected.

Then add:

timeline: {
    type: "scheduler",
    displayName: "Timeline"
} 

to the "modes" object.

Now change the context (e.g. click on "Month"); this will throw the calendar into a fetch loop.

Image

Please can you confirm this bug.

Thanks!

Last edited by tdset on Tue Sep 28, 2021 4:13 pm, edited 1 time in total.

Post by alex.l »

Confirmed https://github.com/bryntum/support/issues/3469
Thank you for the report!

All the best,
Alex


Post by tdset »

Do you know if a fix was pushed to the v5 branch? In my tests it wasn't, but please confirm

Currently we have to load the entire dataset (and avoid loadOnDemand since it generates an endless loop) but with many records it's not so feasible.

Is there another approach to load a subset of records? We use the crudManager


Post by Animal »

The Timeline has a different conception of startDate end endDate. It looks like it's another case of the Scheduler not knowing that it is hidden and reacting to the data change caused by the MonthView loading its idea of the visible dates.


Post by tdset »

I noticed this appears fixed in the latest release.
I'm trying to use it but when I enable 'loadOnDemand' an error is being produced:

"Uncaught Error: Invalid type name "loadOnDemand" passed to CalendarFeature factory"

To replicate this add:

loadOnDemand: true

within "examples/calendar-scheduler/app.js"

printscreen here: https://www.dropbox.com/s/cqsxojrpw19hsu0/Snipaste_2022-04-20_17-13-19.png?dl=0


Post by tasnim »

Please check if you imported that feature?


Post by tdset »

that was it, thanks for your help.

There is a separate issue when using loadOnDemand and

datePicker: {
        events: true,
    },

This makes the crudManager send continuous load calls, one after another

I'm using the standard example "examples/calendar-scheduler/", see image below

https://www.dropbox.com/s/bby595l7skgunwk/Snipaste_2022-04-22_11-07-27.png?dl=0


Post by tasnim »

Thanks for your clarification. I've reproduced the bug, we'll investigate it. Here is the ticket : https://github.com/bryntum/support/issues/4530

Best regards,
Tasnim


Post Reply