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

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.v18.2.dll

Declaration

public event CallbackEventHandlerBase CustomCallback

Event Data

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

Remarks

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.

Example

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