When I want to edit an occurence of a recurring appointment, the occurence loses its link to the series. The occurence in the Schedule does not show the recurring-icon and I am unable to select "Edit Series".
My - simplified - schedule is set up like this:
@{Html.EJ().Schedule("Schedule")
.Views(new List<string>() { "Day", "Week", "Workweek", "Month" })
.Orientation(Orientation.Horizontal)
.EnableLoadOnDemand(true)
.Group(gr =>{gr.Resources(Model.ScheduleGroupings);})
.Resources(res =>
{
res
.Field("EmployeeId")
.Title("Employee")
.Name("Employees")
.AllowMultiple(false)
.ResourceSettings(fields => fields.Datasource(Model.EmployeeResources)
.Text("Text")
.Id("Id")
.GroupId("GroupId")
.Color("Color")).Add();
if (Model.ScheduleGroupings.Contains("EmployeeGroups"))
{
res
.Field("EmployeeGroupId")
.Title("EmployeeGroup")
.Name("EmployeeGroups")
.AllowMultiple(false)
.ResourceSettings(fields => fields.Datasource(Model.EmployeeGroupResources)
.Text("Text")
.Id("Id")
.GroupId("GroupId")
.Color("Color")).Add();
}
})
.AppointmentSettings(fields =>
{
fields.Datasource(dataSource => dataSource.URL("/Schedule/GetCaseTasks")
.EnableAjaxCache(false)
.Adaptor(AdaptorType.UrlAdaptor)
)
.Id("Id")
.Subject("Subject")
.StartTime("StartTime")
.EndTime("EndTime")
.Description("Description")
.AllDay("AllDay")
.Recurrence("Recurrence")
.RecurrenceRule("RecurrenceRule")
.RecurrenceId("RecurrenceId")
.RecurrenceExDate("RecurrenceExDate")
.ResourceFields(Model.ScheduleResourceFields);
})
.Render();
}
My controller returns the following appointments:
[
{
"Id": 323,
"Subject": "Recur test",
"Description": null,
"StartTime": "/Date(1556766000000)/",
"EndTime": "/Date(1556769600000)/",
"Categorize": "",
"EmployeeGroupId": "g2",
"EmployeeId": "g2e7",
"Priority": "",
"AllDay": false,
"Recurrence": true,
"RecurrenceRule": "FREQ=WEEKLY;INTERVAL=1;BYDAY=SU,MO,TU,WE;",
"RecurrenceId": null,
"RecurrenceExDate": "5/7/2019"
},
{
"Id": 325,
"Subject": "Recur test",
"Description": null,
"StartTime": "/Date(1557198000000)/",
"EndTime": "/Date(1557201600000)/",
"Categorize": "",
"EmployeeGroupId": "g2",
"EmployeeId": "g2e7",
"Priority": "",
"AllDay": false,
"Recurrence": false,
"RecurrenceRule": null,
"RecurrenceId": 323,
"RecurrenceExDate": null
}
]
Reading through the Schedule-documentation on various platforms my understanding is, that the occurence should only use the RecurrenceId value, and have recurrence disabled. I would like help with this, so that once an occurence is created I can still edit the series through the occurence. Hope it makes sense.