This is a migrated thread and some comments may be shown as answers.

Reload scheduler

1 Answer 245 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Anto
Top achievements
Rank 1
Anto asked on 24 Mar 2020, 08:28 AM
How to Reload scheduler ? 

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 25 Mar 2020, 01:06 PM

Hi Anto,

There is no special method that can be used to reload the Scheduler. The component might not be reloaded as te Angular's change detection mechanism not being triggered. A common pitfall is when a component property isn't updated by reference and just its value is changed. In such cases, the change detection isn't triggered and the view won't be re-rendered.

Generally speaking, when replacing the data collection the Scheduler is bound to, with a new one will automatically trigger the Angular change detection and the view will re-rendered. Please check the following article regarding Change detection behavior:

https://blog.angular-university.io/how-does-angular-2-change-detection-really-work/

In order to provide a more suitable solution for this case, I am afraid that we need some further details about the use case such as code snippets, live URL or ideally a StackBlitz example that demonstrates the issue. Thus we can inspect the code and eventually find what causes the reported issue. Thank you in advance.

Regards,
Martin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Marco
Top achievements
Rank 1
commented on 25 Oct 2023, 03:33 PM

even updating the events object (even using the spread operator) the scheduler doesnt update

	<kendo-scheduler
		id="scheduler"
		[kendoSchedulerBinding]="events"
		[modelFields]="eventFields"
		[resources]="resources"
		[group]="group"
		[scrollTime]="nowDate"
		(edit)="onEdit($event)"
		(remove)="onRemove()"
		(save)="onSave($event)"
		[loading]="loaderService.loading"
		(drag)="$event.preventDefault()"
		(eventDblClick)="eventDblClickHandler($event)"
		(slotDblClick)="slotDblClickHandler($event)"
		[editable]="{
			drag: false,
			remove: false,
			add: false,
			resize: false,
			edit: false
		}"
		style="height: 800px"
	>

events is populated by an API call and the scheduler needs to refrash every time events update, but it doesnt, any help ?
Tags
Scheduler
Asked by
Anto
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or