Skip to main content

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. The ASPxGaugeControl.DefaultValue property specifies this value.

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