We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to bind different data structure with ejs-scheduler?

Hi,

First of all Thank you very much for your work and support.  I am working with Angular 8 Application and i am using ejs-schedule.

Now I would like to bind data structure given below to the schedule and display event. How could i do it?

Data structure: 

[
  {
    "id": 1102,
    "produktname": null,
    "ort": "string",
    "beschreibung": "string",
    "datum_von": "2020-01-01",
    "zeit_von": "12:30",
    "datum_bis": "2020-01-01",
    "zeit_bis": "11:30",
    "kalendar_art": 1,
    "termin_zustand": 0,
    "veranstaltungskategorie_id": null,
    "spiel_id": 10004804,
    "warnung_entfernung": null,
    "warnung_konflikt": null,
    "prodprod_id": null,
    "prodspiel_id": null,
    "prodwerk_id": null,
    "abkoTerminId": null,
    "betBetriebsKalendarId": 1052
  }
]
Please help me with it. Just expecting to bind few field.
Regards,Parth

3 Replies

VM Vengatesh Maniraj Syncfusion Team January 24, 2020 09:01 AM UTC

Hi Parthkumar, 

Greetings from Syncfusion Support. 

Based on your requirement, we have prepared a sample in that we can able to see the additional fields are added to the events using eventRendered event and it can be viewed from the following link, 

And for further reference, kindly refer the below UG link, 

Kindly try the above sample, if you have any concerns please revert us back for further assistance.  

Regards,  
Vengatesh 



PK Parthkumar Kakadiya January 24, 2020 12:16 PM UTC

Hi Vengatesh,

Thanks a lot for your solution. I understood the binding with the help of your solution.. Just to make it clear, Right now there is no two-way binding for resource data and schedule data.

I mean if i change the resource data or event data i must always re-assign the data to the schedule right..

Thanks again, Have a nice day and weekend.

Regards,
Parth


VM Vengatesh Maniraj Syncfusion Team January 27, 2020 05:24 AM UTC

Hi Parthkumar, 

Thanks for the update.  

Yes, currently there is no two-ways binding for resource data and events data. This is our default behavior for Schedule component. If we need to change this, we must re-assign it to the Schedule. 

Please let us know if any further assistance. 

Regards, 
Vengatesh 


Loader.
Live Chat Icon For mobile
Up arrow icon