[DayPilot Pro for Angular] Calendar View does not automatically update events
Asked by Hoang Xuan Nguyen (nguyen.hoang)
7 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: this.calendar.events});
Please help.
Answer posted by Dan Letecky [DayPilot]
7 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 1 month old and has been closed. Please create a new question if you have anything to add.