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

How to: Obtain Server Data from the Client

This example demonstrates how to obtain server data from the client. A temporary client property - cpDefaultValue, is declared within the ASPxGaugeControl.CustomJSProperties event handler. This property holds the ASPxGaugeControl’s default value, specified by the ASPxGaugeControl.DefaultValue property.

protected void ASPxGaugeControl1_CustomJSProperties(object sender,
           DevExpress.Web.CustomJSPropertiesEventArgs e) {
    e.Properties.Add("cpDefaultValue", ASPxGaugeControl1.DefaultValue);
}