title: Real Time Update of Devexpress Gauges
body: <p>I have managed to create a circular guage using Devepxress following their code examples but I have a problem. Once the control is created I do not no how to use their function to update the controls.</p>
  
  <p>They do have an example of how to use a updatepanel so I am considering my best option would be to add an updatepanel dynamically but how would i attach it to each control that is created so its only that one guage that would change its values</p>
  
  <p><a href="https://documentation.devexpress.com/#AspNet/CustomDocument11286" rel="nofollow">https://documentation.devexpress.com/#AspNet/CustomDocument11286</a></p>
  
  <p>Form Load Code :</p>
  
  <pre><code>dgh.CreateCircularGauge(25, pnlTorgue);
  dgh.CreateCircularGauge(45, pnlRpm);
  dgh.CreateCircularGauge(75, pnlSpeedkmh);
  dgh.CreateThemomenter(85, pnlEngTemp);
  </code></pre>
  
  <p>**What i want from this question **</p>
  
  <p>Is Ability to say dgh.CreatCircularGuage(oldValue, NewValue , UpdateBoolean,mypanel);
  So that I could call this using a aspxtimer tick event ? is this possible </p>
  
  <pre><code>public  void CreateCircularGauge(int guageValue, Panel mypanel)
  {
          // Creates a new instance of the ASPxGaugeControl class with default settings.
          ASPxGaugeControl gaugeControl = new ASPxGaugeControl();
          gaugeControl.EnableCallbackAnimation = true;
  
          // Creates a new instance of the CircularGauge class and adds it
          // to the gauge control's Gauges collection.
          CircularGauge circularGauge = (CircularGauge)gaugeControl.AddGauge(GaugeType.Circular);
  
          // Adds the default elements (a scale, background layer, needle and spindle cap).
          circularGauge.AddDefaultElements();
  
          // Changes the background layer's paint style.
          ArcScaleBackgroundLayer background = circularGauge.BackgroundLayers[0];
          background.ShapeType = BackgroundLayerShapeType.CircularFull_Style2;
  
          // Customizes the scale's settings.
          ArcScaleComponent scale = circularGauge.Scales[0];
          scale.MinValue = 0;
          scale.MaxValue = 100;
          scale.Value = guageValue;
          scale.MajorTickCount = 6;
          scale.MajorTickmark.FormatString = "{0:F0}";
          scale.MajorTickmark.ShapeType = TickmarkShapeType.Circular_Style1_2;
          scale.MajorTickmark.ShapeOffset = -9;
          scale.MajorTickmark.AllowTickOverlap = true;
          scale.MinorTickCount = 3;
          scale.MinorTickmark.ShapeType = TickmarkShapeType.Circular_Style2_1;
          scale.AppearanceTickmarkText.TextBrush = new SolidBrushObject(Color.Gray);
  
          // Changes the needle's paint style.
          ArcScaleNeedleComponent needle = circularGauge.Needles[0];
          needle.ShapeType = NeedleShapeType.CircularFull_Style3;
  
          // Adds the gauge control to the Page.
          gaugeControl.Width = 250;
          gaugeControl.Height = 250;
          gaugeControl.AutoLayout = true;
  
          mypanel.Controls.Add(gaugeControl);
  
   }
  </code></pre>