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
 [Collapse]ASP.NET WebForms Controls
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]Scheduler
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Collapse]Gauges
   [Expand]Product Information
   [Expand]Getting Started
   [Expand]Fundamentals
   [Expand]Concepts
   [Expand]Visual Elements
   [Expand]Design-time Features
   [Collapse]Examples
     How to: Create a Circular Gauge
     How to: Create a Linear Gauge
     How to: Create a Digital Gauge
     How to: Create a State Indicator Gauge
     How to: Bind a Gauge Control to a Data Source
     How to: Obtain Server Data from the Client
     How to: Show Live Data from a Database (using CustomCallback)
     How to: Show Live Data from a Database (using UpdatePanel)
     How to: Perform Custom Callbacks
     How to: Use Custom Draw Events
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET 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]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Bind a Gauge Control to a Data Source

This example shows how to bind the ASPxGaugeControl to data. In this example, the ASPxComboBox is bound to an XML data source and lists different car models. The ASPxGaugeControl displays HP for the selected car model.

After an end-user has selected a car model from the dropdown list, the ASPxClientEdit.ValueChanged event is handled to send a callback to the server and generate the server-side ASPxGaugeControl.CustomCallback event, passing it the index of the selected item.

The ASPxGaugeControl.CustomCallback event is handled to specify the gauge label's text and bind the ASPxGaugeControl to data.

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