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

[DayPilot Pro for Angular] Calendar View does not automatically update events

Asked by Hoang Xuan Nguyen (nguyen.hoang)
22 days ago.

After some changes of event the calendar won't show changes until refresh the page.

I tried the following code but nothing happened.
calendar: DayPilotSchedulerComponent;
this.calendar.control.update ({events: this.calendar.events});

Please help.

Answer posted by Dan Letecky [DayPilot]
20 days ago.

Please make sure that you don't specify the [events] attribute in the template:

<daypilot-scheduler [config]="config" #scheduler></daypilot-scheduler>

If you specify the [events] attribute it will override the directly-loaded events on the next change detection:

<daypilot-scheduler [config]="config" [events]="events" #scheduler></daypilot-scheduler>

Let me know if it didn't help.

New Reply
This reply is
Your name (optional):