Skip to main content
.NET 8.0+

NotificationsProvider.CustomizeAppointmentMapping Event

Occurs when the NotificationsProvider is initialized by the scheduler storage.

Namespace: DevExpress.ExpressApp.Scheduler

Assembly: DevExpress.ExpressApp.Scheduler.v24.2.dll

Declaration

public event EventHandler<CustomizeAppointmentMappingEventArgs> CustomizeAppointmentMapping

Event Data

The CustomizeAppointmentMapping event's data class is DevExpress.ExpressApp.Scheduler.CustomizeAppointmentMappingEventArgs.

Remarks

Handle this event to change the list of data source fields that is used in the NotificationsProvider in your Windows Forms or ASP.NET Web Forms application. To subscribe to CustomizeAppointmentMapping, override the OnSetupComplete method of the MySolution\Module project.

protected override void OnSetupComplete() {
    base.OnSetupComplete();
    NotificationsProvider notificationsProvider = (NotificationsProvider)this.schedulerModuleBase.NotificationsProvider;
    notificationsProvider.CustomizeAppointmentMapping += NotificationsProvider_CustomizeAppointmentMapping;
}
private void NotificationsProvider_CustomizeAppointmentMapping(object sender,
    DevExpress.ExpressApp.Scheduler.CustomizeAppointmentMappingEventArgs e) {
    e.AppointmentMappingInfo.ResourceId = null;
}

Note

To customize appointment mappings in an XAF ASP.NET Core Blazor application, use the OnSchedulerDataStorageCreated event. For more information, refer to the following topic: How to: Customize Status and Label Properties.

See Also