ASPxSchedulerDataWebControlBase.CustomCallback Event

Fires when a round trip to the server has been initiated by a call to the client ASPxClientScheduler.PerformCallback method.

Namespace: DevExpress.Web.ASPxScheduler

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


public event CallbackEventHandlerBase CustomCallback
Public Event CustomCallback As CallbackEventHandlerBase

Event Data

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

Property Description
Parameter Gets a string that contains specific information (if any) passed from the client side.


The CustomCallback event allows any desired server-side processing to be performed in response to a call to the client ASPxClientScheduler.PerformCallback method.

Specific information passed from the client side can be obtained by the CallbackEventArgsBase.Parameter property.

Note that the necessary actions can be additionally performed on the client side before and after callback processing by using the ASPxClientScheduler.BeginCallback and ASPxClientScheduler.EndCallback client events.


The following code example illustrates how to use the ASPxSchedulerDataWebControlBase.CustomCallback event.

protected void ASPxScheduler1_CustomCallback(object sender, CallbackEventArgsBase e) {
    ASPxScheduler scheduler = sender as ASPxScheduler;
    if(e.Parameter == "ChangeCompletedStatus" && scheduler.SelectedAppointments.Count > 0) {
        Appointment currentAppt = scheduler.SelectedAppointments[0];
        currentAppt.CustomFields["LessonCompleted"] = !Convert.ToBoolean(currentAppt.CustomFields["LessonCompleted"]);
See Also