Here is it working in the online example:
Support Forum
The Calendar's loadOnDemand feature uses this event: https://bryntum.com/products/calendar/examples/load-on-demand/
But how to refresh the scheduler to show the new data in the scheduler?
No need to refresh, just add new data into stores, it will update the view automatically.
Also, It's getting triggered for 6 months by default. Is there any option to set this by default limit of 6 to 1 month or for some days?
What viewPreset are you using? Try to use another view preset, it will allow you to load less data.
All the best,
Alex
Hi Alex,
I am using this viewPreset and my loaddaterange console is getting triggered when I scroll 3 months to the right or left of my current date.
Also, consider the below example:
like today is 28th March
So when I scroll back to 27th December or before that, it is taking the start date as Oct 2022 and the end date as April 2023
viewPreset: {
base: 'dayAndWeek',
displayDateFormat: 'YYYY-MM-DD',
timeResolution: {
unit: 'hour',
increment: 6
}
},
I tried here https://bryntum.com/products/scheduler/examples/infinite-scroll/
Using default viewPreset, it loads 1 month only.
Using config you provided it loads 2 months.
How to get 6 months as you described? Maybe you overrode some default configs?
All the best,
Alex