The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxScheduler.BeforeExecuteCallbackCommand Event

Fires before a callback command is executed.

Namespace: DevExpress.Web.ASPxScheduler

Assembly: DevExpress.Web.ASPxScheduler.v19.2.dll

Declaration

public event SchedulerCallbackCommandEventHandler BeforeExecuteCallbackCommand
Public Event BeforeExecuteCallbackCommand As SchedulerCallbackCommandEventHandler

Event Data

The BeforeExecuteCallbackCommand event handler receives an argument of the SchedulerCallbackCommandEventArgs type. The following properties provide information specific to this event.

Property Description
Command Gets or sets the object, representing the callback command.
CommandId Gets the command identifier, specifying a command to be executed.

Remarks

The BeforeExecuteCallbackCommand event alerts that a callback is about to be executed.The issued command and its parameters are identified by the event's arguments.

Tip

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E2924.

protected void ASPxScheduler1_BeforeExecuteCallbackCommand(object sender, DevExpress.Web.ASPxScheduler.SchedulerCallbackCommandEventArgs e) {
    if (e.CommandId == SchedulerCallbackCommandId.AppointmentSave) {
        e.Command = new CustomAppointmentSaveCallbackCommand((ASPxScheduler)sender);
    }
}
See Also