OriginalOccurrenceDateHelper Class
Static class used to update data source fields mapped to the Appointment.OriginalOccurrenceStart and Appointment.OriginalOccurrenceEnd properties.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.Core.Desktop.dll
NuGet Package: DevExpress.Scheduler.CoreDesktop
Declaration
Remarks
The OriginalOccurrenceDateHelper class has been implemented to populate the data source fields mapped to the Appointment.OriginalOccurrenceStart and Appointment.OriginalOccurrenceEnd properties.
When using the SchedulerStorageBase.FetchAppointments event to enhance the scheduler performance, the preferred method is building the queries with the OriginalOccurrenceStart and OriginalOccurrenceEnd appointment properties instead of Start and End values. This approach eliminates the problem with changed occurrences in a recurrence series. For more information, review the FetchAppointments Event - Handling Large Datasets article.
To update the application for using this approach, perform the following steps:
- Modify the data source to include two DateTime fields.
- Add mappings. Map two fields added in the previous step to the Appointment.OriginalOccurrenceStart and Appointment.OriginalOccurrenceEnd properties.
- Call the OriginalOccurrenceDateHelper.Update method to update the data source fields.
- Modify the queries run in the SchedulerStorageBase.FetchAppointments event handler. Replace the Start and End values with the OriginalOccurrenceStart and OriginalOccurrenceEnd values.