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)
3 years 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:});

Please help.

Answer posted by Dan Letecky [DayPilot]
3 years 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.

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