Not able to bind data to dataSource using EventSettingsModel

datasourse binding.pngapi data insertion into datasource.pngsample response from api.pngSample exmple of dataSource binding from api response after modifying data to required format of eventSettingModel 


1 Reply

BS Balasubramanian Sattanathan Syncfusion Team January 31, 2022 03:09 PM UTC

Hi Akash,

Greetings from Syncfusion Support.

We let you know that you have added the data to the local variable 'this.dataSource' instead of eventSettings of dataSource. So the data is not loaded to the Scheduler.

https://stackblitz.com/edit/angular-kvf4k6?file=app.component.ts

Code snippet:

onButtonClick() {

  this.data = extend([], zooEventsData, null, true) as Record<string, any>[];

  this.scheduleObj.eventSettings.dataSource = this.data;

  this.addButton.element.setAttribute('disabled', 'true');

}


Kindly try the above solution and let us know if this resolves your problem.

Regards,
Balasubramanian S


Loader.
Up arrow icon