search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Setting the 'links' via the Direct API does not work

Asked by Octave
1 month ago.

Hi,

As per https://doc.daypilot.org/scheduler/angular-performance/ it is adviced to load large sets of resources and events via the so called Direct API.

In the Angular application

this.scheduler.control.update({resources});
this.scheduler.control.update({events});

instead of

this.config.resources = resources;
this.config.events = events;

Naturally, I followed the same approach to load the links, but it does not seems to work (altought links is a property that can be passed to the config object of the update() method.

The following leave the scheduler in a weird state: resources are displayed, but events are not.

this.scheduler.control.update({links});

Using the code below with the same ‘links’ object works perfectly, leading to have the whole graph (resources, events and links rendered properly).

this.config.links = links;

Is there something to fix in the update() method of the direct API ?

Best regards,

Octave

Comment posted by Dan Letecky [DayPilot]
1 month ago.

Is there any error in the JavaScript console?

Answer posted by Octave
1 month ago.

Hi,

Nothing related to that.

[webpack-dev-server] Server started: Hot Module Replacement disabled, Live Reloading enabled, Progress disabled, Overlay enabled.
core.mjs:26656 Angular is running in development mode.
zone.js:2345 [Violation] 'setTimeout' handler took 523ms
[Violation] Forced reflow while executing JavaScript took 38ms
zone.js:2345 [Violation] 'setTimeout' handler took 234ms
zone.js:2345 [Violation] 'setTimeout' handler took 58ms

I tried to reproduce the issue in a minimal project, but without success so far.

Back to my project, I can’t reproduce the issue anymore :/

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.