Skip to main content
A newer version of this page is available. .

ASPxScheduler.BeforeExecuteCallbackCommand Event

Fires before a callback command is executed.

Namespace: DevExpress.Web.ASPxScheduler

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

NuGet Package: DevExpress.Web.Scheduler

Declaration

public event SchedulerCallbackCommandEventHandler BeforeExecuteCallbackCommand

Event Data

The BeforeExecuteCallbackCommand event's data class is SchedulerCallbackCommandEventArgs. 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

For the complete sample project, see the following DevExpress Support Center example: https://supportcenter.devexpress.com/ticket/details/e2924/how-to-construct-an-appointment-editing-form-with-custom-fields.

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

Online Examples

See Also