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

ASPxGaugeControl.CustomCallback Event

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

Namespace: DevExpress.Web.ASPxGauges

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

Declaration

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.

Remarks

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

Use the CallbackEventArgsBase.Parameter property to get the information passed from the client side.

If you need to perform actions on the client-side before and after callback processing, handle the ASPxClientGaugeControl.BeginCallback and ASPxClientGaugeControl.EndCallback events.

After a custom callback has been performed, the ASPxGaugeControl is automatically re-rendered.

Note
  • Changing the settings of other controls contained on the page has no effect, because a custom callback only contains information about the ASPxGaugeControl.

Examples

This example demonstrates how change the ASPxGaugeControl's value using an ASPxSpinEdit.

The spin editor's ValueChanged event is handled to call the gauge's client-side ASPxClientGaugeControl.PerformCallback method, passing the spin editor's value. As a result, the ASPxGaugeControl.CustomCallback event is raised, and the spin editor's new value, specified by the e.Parameter property, is assigned to the ASPxGaugeControl.Value property. After a custom callback has been performed, the ASPxGaugeControl is automatically re-rendered.

The animation below, shows the result:

gcCustomCallbacks

protected void ASPxGaugeControl2_CustomCallback(object source,
                  DevExpress.Web.CallbackEventArgsBase e) {
    ASPxGaugeControl2.Value = e.Parameter;
}
See Also