Load data is called twice at change currentView of scheduler from external button

Hi! im working with schedule component and i has a issue not minor: when i'm in view week and from external button i change the current view: "this.scheduleObj.currentView = 'Month'", the load data request is called twice.

This has as effect that events has re-render twice.


I tried to use "this.scheduleObj.changeCurrentView('Month') but still the same behaviour.


Regards


2 Replies

BE Benjamin July 23, 2021 04:32 PM UTC

Ok, i found the issue: when i pass to scheduler component the property "workHours" and i changed it, causes loadData request again. I changed a little bit the implementation (using resetWorkHours method) and now has only one request.



NR Nevitha Ravi Syncfusion Team July 26, 2021 04:06 AM UTC

Hi Benjamin, 

Greeting from Syncfusion Support. 

We are happy to hear that you have resolved the problem at your end. Please get back to us if you need any further assistance. 

We will be happy to assist you. 

Regards, 
Nevitha  


Loader.
Up arrow icon