Hi,
I have been using Infinite scrolling on version 2020.2.4481, and it works great. I upgraded to version 2020.2.4516 and now i have the issue that Infinite scrolling only works after the scheduler is loaded and i refresh the page again using F5.
The Infinite scrolling doesn't work anymore when starting the project and navigating to the page that uses the scheduler. The scheduler loads and everything else seems to work but not the Infinite scrolling. Hitting F5 while on the page containing the scheduler seems to fix things. Version 2020.2.4481 did not have this issue.
I see in the release notes that there was en improvement for the Infinite scrolling in version 2020.2.4516. Do i need to configure additional properties to let it function properly again?
I am using angular 8.14 within Chrome Version 81.0.4044.138 (Official Build) (64-bit) and the following infinite scrolling config: (i have multiple zoom levels but the one shown is the one that is initialised)
infiniteScrollingEnabled: true,
infiniteScrollingMargin: 20,
infiniteScrollingStepDays: 93,
dynamicLoading: true,
onScroll: (args) => {
let start = args.viewport.start;
let end = args.viewport.end;
this.eventService.getEvents(start, end).subscribe((result) => {
args.events = result;
args.loaded();
});
},
zoomLevels: [
{
name: 'Zes weken',
properties: {
scale: 'CellDuration',
cellDuration: 1440,
cellWidth: (args) => {
if (<any>that.scheduler.control && (<any>that.scheduler.control).nav && (<any>that.scheduler.control).nav.scroll) {
return Math.floor((<any>that.scheduler.control).nav.scroll.clientWidth / 42);
}
return 1;
},
timeHeaders: [{ groupBy: 'Month' }, { groupBy: 'Week' }, { groupBy: 'Day', format: 'd' }],
startDate: DayPilot.Date.today().firstDayOfYear(),
days: DayPilot.Date.today().daysInYear(),
},
}],
zoom: 2,