Thank you for using Syncfusion products.
We would like to let you know that, if suppose the JSON object is directly passed to the view, then you can either assign it directly to the “dataSource” property of the Schedule or else you can use the datamanager code as we have highlighted below. While using DataManager, it is necessary to query the data objects using ej.Query() to get the data collection as mentioned below,
console.log('Model + @Model');
var dManager = ej.DataManager(wd).executeLocal(ej.Query());
For more details on Data Manager, refer the following link :
Also, after checking with your provided code and JSON data, we found that you have mapped two of your fields (subject and allDay fields) wrongly. We request you to map the schedule appointment fields appropriately, so that the appointments will render correctly in the Schedule with the given data. Please refer the following code snippet to map the fields as per your given data,
subject: "Title", // In your JSON data, you have used the field name as “Title” – therefore mapped it here.
allDay: "AllDay", // Need to assign the mapper field name here, instead of assigning direct values like true.
Note: If in case, you are not using the fields like allDay, recurrence and recurrenceRule in your JSON data object – then it is not necessary to map such field names to the appointmentSettings, you can simply ignore by not defining it.
Kindly try with the above things and please let us know if it works on your project and also let us know, if you need any further assistance on this.
Sarath Kumar P K
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.