Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Data.Linq
  [Expand]DevExpress.Web
  [Collapse]DevExpress.Web.ASPxGauges
   [Collapse]ASPxGaugeControl Class
     ASPxGaugeControl Members
     ASPxGaugeControl Constructor
    [Expand]ASPxGaugeControl Properties
    [Collapse]ASPxGaugeControl Events
      CustomCallback Event
      CustomJSProperties Event
    [Expand]ASPxGaugeControl Methods
   [Expand]CustomCallbackClientSideEvents Class
  [Expand]DevExpress.Web.ASPxGauges.Base
  [Expand]DevExpress.Web.ASPxGauges.Scripts
  [Expand]DevExpress.Web.ASPxHtmlEditor
  [Expand]DevExpress.Web.ASPxHtmlEditor.Localization
  [Expand]DevExpress.Web.ASPxHtmlEditor.Scripts
  [Expand]DevExpress.Web.ASPxPivotGrid
  [Expand]DevExpress.Web.ASPxPivotGrid.Data
  [Expand]DevExpress.Web.ASPxPivotGrid.HtmlControls
  [Expand]DevExpress.Web.ASPxPivotGrid.Scripts
  [Expand]DevExpress.Web.ASPxRichEdit
  [Expand]DevExpress.Web.ASPxRichEdit.Localization
  [Expand]DevExpress.Web.ASPxRichEdit.Scripts
  [Expand]DevExpress.Web.ASPxScheduler
  [Expand]DevExpress.Web.ASPxScheduler.Commands.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Controls
  [Expand]DevExpress.Web.ASPxScheduler.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Drawing
  [Expand]DevExpress.Web.ASPxScheduler.Localization
  [Expand]DevExpress.Web.ASPxScheduler.Reporting
  [Expand]DevExpress.Web.ASPxScheduler.Scripts
  [Expand]DevExpress.Web.ASPxSpellChecker
  [Expand]DevExpress.Web.ASPxSpellChecker.Localization
  [Expand]DevExpress.Web.ASPxSpellChecker.Scripts
  [Expand]DevExpress.Web.ASPxSpreadsheet
  [Expand]DevExpress.Web.ASPxSpreadsheet.Localization
  [Expand]DevExpress.Web.ASPxSpreadsheet.Scripts
  [Expand]DevExpress.Web.ASPxTreeList
  [Expand]DevExpress.Web.ASPxTreeList.Internal
  [Expand]DevExpress.Web.ASPxTreeList.Localization
  [Expand]DevExpress.Web.ASPxTreeList.Scripts
  [Expand]DevExpress.Web.Captcha
  [Expand]DevExpress.Web.Data
  [Expand]DevExpress.Web.Internal
  [Expand]DevExpress.Web.Localization
  [Expand]DevExpress.Web.Mvc
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

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.v17.2.dll

Expanded Syntax

Expanded Event Data

The event handler receives an argument of type CallbackEventArgsBase containing data related to this event.

The following CallbackEventArgsBase properties provide information specific to this event.
Property Description
Parameter Gets a string that contains specific information (if any) passed from the client side.

Expanded 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.

Expanded 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 CustomCallback event is raised, and the spin editor's new value, specified by the e.Parameter property, is assigned to the Value property. After a custom callback has been performed, the ASPxGaugeControl is automatically re-rendered.

The animation below, shows the result:

Expanded See Also

How would you rate this topic?​​​​​​​