This example demonstrates how a delete appointment action can be confirmed using a client-side scripting technique. Note that the delete appointment action can be initiated from two places: a context menu and appointment form of ASPxScheduler.
To override context menu behavior, utilize the technique from the How to change default menu items and actions in the popup menu example. I.e., handle the ASPxScheduler.PopupMenuShowing Event and specify a custom client-side handler for the menu items via the e.Menu.ClientSideEvents.ItemClick parameter (see the code behind and markup of the "Default" webpage).
To override the "Delete" button behavior of the appointment form, you need to create a custom appointment form (see How to: Modify the Appointment Editing Form for Working with Custom Fields) and assign an appropriate client-side handler to the btnDelete.ClientSideEvents.Click property in the overridden DataBind() method of the form (see CustomAppointmentForm.ascx.cs code-behind file).
See Also:
How to implement a client-side confirmation on the user action modifying the appointment
Question Comments
Added By: Donald Lindstedt at: 6/8/2015 2:17:12 PM
aspxAppointmentDelete is obsolete in v15.1.3.
ASPx.AppointmentDelete is now required.