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

ASPxClientGaugeControl Class

Represents the client ASPxGaugeControl.

Declaration

declare class ASPxClientGaugeControl extends ASPxClientControl

Example

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;
}

Inheritance

See Also