Hi Manish,
Thanks for contacting Syncfusion support.
Please find the following responses for your queries.
Query1: Script error throws while rendering the multiple resource
When the resources are used in the scheduler, it is mandatory to map the resource field with the AppointmentSettings. Refer to the following code example to map the ResourceField,
<Code>
AppointmentSettings(fields => fields.Datasource(ds => ds.URL("/Home/GetData").CrudURL("/Home/Batch").Adaptor("UrlAdaptor"))
.Id("Id")
.Subject("Subject")
.StartTime("StartTime")
.StartTimeZone("StartTimeZone")
.EndTimeZone("EndTimeZone")
.EndTime("EndTime")
.Description("Description")
.AllDay("AllDay")
.Recurrence("Recurrence")
.RecurrenceRule("RecurrenceRule")
.ResourceFields("OwnerId"))
</Code>
Query2: Need to understand about Datasource methods
For example: ResourceSettings(flds => flds.Datasource(ViewBag.Owners).Text("text").Id("id").GroupId("groupId").Color("color")).Add();
Note: To know more about datasource and datamanager, visit the below User Guide links,
Datasource:
http://help.syncfusion.com/js/schedule/data-binding
Datamanager:
http://help.syncfusion.com/js/datamanager/overview
Query3: Appointments are not rendering in given time
We request you to include the StartTimeZone and EndTimeZone fields in the datasource in order to render the appointments at the same time as given in the datasource. We have prepared the sample for the queries 1 and 3, which can be downloaded from the following location,
http://www.syncfusion.com/downloads/support/forum/121159/ze/ScheduleCRUD-1551034082
In the above sample, we have included the ResourceFields, StartTimeZone, and EndTimeZone within the AppointmentSettings. TheStartTimeZone and EndTimeZone fields are included in the datasource. So, the appointments will be rendered at the same time as given in the datasource.
Regards,
Karthigeyan