Breaking Change T1007681
Visible to All Users

Scheduler - CRUD events changed their delegate type from Action to EventCallback

What Changed

We changed the delegate type from Action to EventCallback for the following Scheduler events:

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)));

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.