What Changed
We changed the delegate type from Action to EventCallback for the following Scheduler events:
- AppointmentInserting
- AppointmentInserted
- AppointmentUpdating
- AppointmentUpdated
- AppointmentRemoving
- AppointmentRemoved
Reasons for Change
The Action delegate type could cause errors and inconvenience when handlers for the listed events contained asynchronous code.
Impact on Existing Apps
This change will affect your application if you handle these events in C# code using RenderTreeBuilder (instead of Razor markup).
C#builder.OpenComponent<DxScheduler>(0);
builder.AddAttribute(1, "AppointmentInserting", new Action<SchedulerAppointmentOperationEventArgs>( (e) => OnAppointmentInserting(e));
How to Update Existing Apps
Handle the events in C# code as shown below.
C#builder.OpenComponent<DxScheduler>(0);
builder.AddAttribute(1, "AppointmentInserting", EventCallback.Factory.Create<SchedulerAppointmentOperationEventArgs>(context.Receiver, (e) => OnAppointmentInserting(e)));