NuGet Package: DevExpress.Scheduler.CoreDesktop
public static class OriginalOccurrenceDateHelper
Public Module OriginalOccurrenceDateHelper
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.