Hi all,
I am trying to find a way that I can display events using the Scheduler Blazor component that do not use the recurrence rule, but instead display a list of "real" events returned from the DB that are linked via a parent/child relationship.
The rationale for doing this is to mitigate against issues we have had with long running events and exceeding the Recurrence Exception max length. Doing this currently will not display these events are recurring events, meaning that we lose the functionality of the "Edit Occurrence" or "Edit Series" buttons, and lose the UI element of the recurrence icons in the scheduler.
Is there a way of spoofing recurrence for events in the scheduler?
I am trying to find a way that I can display events using the Scheduler Blazor component that do not use the recurrence rule, but instead display a list of "real" events returned from the DB that are linked via a parent/child relationship.
foreach (var event in events)
{ event.RecurrenceRule = null;
var firstOccurence = new Job
{
Id = new Guid();
Start = new DateTime(event.Start.Value.Ticks).AddDays(1),
End = new DateTime(event.End.Value.Ticks).AddDays(1),
};
var secondOccurence = new Event
{
Id = new Guid();
Start = new DateTime(event.Start.Value.Ticks).AddDays(2),
End = new DateTime(event.End.Value.Ticks).AddDays(2),
};
recurrenceEvents.Add(firstOccurence);
recurrenceEvents.Add(secondOccurence);
}
events.AddRange(recurrenceEvents);
Is there a way of spoofing recurrence for events in the scheduler?