Hi,
I am using scheduler in my Angular 9 application.
Previously I had version: "@syncfusion/ej2-angular-schedule": "18.1.56",
I have updated to version: "@syncfusion/ej2-angular-schedule": "19.2.44",
Now whenever I click on schedule cell it throws an error like this:
Please give me solution for this error.
In attachment, I have attached component and the video of the error.
Regards,
Parth
Hi Vinitha,
Thanks for your reply.
I have tried your suggestion to update all syncfusion component to 19.2.44. I did exactly you asked me to do to overcome duplicate packeges.
I think problem is on rendering Resources to Scheduler. I getting resources from database. After that I assigned to scheduler. I also tried to assign resource ondatabound and Oncreated Method. But error still occurring.
This how my resources looks like. I have assign resources like this.
onDataBound(args: any){
this.scheduleObj.resources[0].dataSource = this.resourceDataSource;
console.log('resource bind on data bound : ', this.scheduleObj)
}
onCreated(){
this.scheduleObj.resources[0].dataSource = this.resourceDataSource;
console.log('On created assign resource : ', this.scheduleObj)
}
I could not replicate this problem cause of data are coming from Database. I am waiting until I get data by showing spinner and not showing html until data loaded. which you can find in HTML file.
I have attached packge.json and lock file with video record of confirming scheduler object having resources.
Regards,
Parth
Hi Vinitha,
Thanks a lot for your solution. It worked for me.
Regards,
Parth