Hi Shawn,
Thanks for Contacting Syncfusion support.
Please find the following responses for your queries:
Query #1: What do I need to do to have the editing functionality work for recurring appointments?
We suspect that the reported problem might have been occurred due to the appointment field count or its type mismatch or wrong field name mapping with the default appointment collection. Therefore, we request you to ensure it once with the fields used in your application and also for your reference, we have depicted the below images to show the working of creation and editing of both normal and recurrence appointments and also getting the “param” details properly as shown in the below screenshot. Similarly, getting the param details properly while editing the recurrence appointment has also been shared in the below screenshot.
Editing normal appointment into recurrence appointment:
Editing recurrence appointment:
Query #2: The scheduler does not display weekly recurring appointments as expected in the sample.
This problem might be suspected due to the missing filtering logic used within the LoadData method for recurrence appointments. In our previously shared sample, we filtered the appointments based on the start and end date value. In this case, for recurrence kind of appointments – all the recurring appointments needs to be fetched and assigned to the Schedule dataSource for proper filtering of its instances on each date ranges during navigation. Therefore, we suggest you change the filtering condition alone as shown below.
<Code>
public List<ScheduleEvent> LoadData()
{
return _context.ScheduleEvents.ToList(); // You do not wish the external filtering use this code
}
Or
public List<ScheduleEvent> LoadData([FromBody]Params param)
{
return _context.ScheduleEvents.ToList().Where(app => (app.StartTime >= param.StartDate && app.StartTime <= param.EndDate) || (app.RecurrenceRule !=null && app.RecurrenceRule != "")).ToList(); // If you need the external filtering use this code
}
</Code>
We have modified the sample with the above code example (1st option), which can be downloaded from the following location.
Kindly try with the above sample, if you still facing any issues with the editing process, please revert back to us with some more details like how do you edit the appointments (both normal and recurrence appointments) and on specific different use-case or application-end customized scenario and If possible, try to reproduce the issue in the above sample. The information that you share will be helpful for us to proceed further on this.
Regards,
Velmurugan