Skip to main content

ASPxGaugeControl.DefaultValue Property


Use the Value property instead.

Gets or sets the ASPxGaugeControl’s default value.

Namespace: DevExpress.Web.ASPxGauges

Assembly: DevExpress.Web.ASPxGauges.v22.1.dll


[Obsolete("Use the Value property instead.")]
public string DefaultValue { get; set; }

Property Value

Type Description

A string value that specifies the control’s default value.


This property is obsolete. Use the ASPxGaugeControl.Value property instead.


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

Handle the spin editor’s ValueChanged event to call the gauge’s client-side ASPxClientGaugeControl.PerformCallback method. Pass the spin editor’s value as a parameter. 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:


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