This is a migrated thread and some comments may be shown as answers.

Gauge Changes Format on Postback

1 Answer 74 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 30 Apr 2013, 04:35 PM
I created a gauge and set the pointer value when the users saves information.  For some reason, when the page posts back, the gauge loses it's original formatting and goes to a default.  Does anyone know why it does this?

I do not set formatting in anyway in the code behind.  Just the pointer value.

radGuage.Pointer.Value =

Convert.ToDecimal(7.5);

 

<

 

telerik:RadRadialGauge ID="radGuage" runat="server" Skin="WebBlue">

 

 

 

 

 

<Pointer Color="Green">

 

 

 

 

 

<Cap Color="Lime" />

 

 

 

 

 

</Pointer>

 

 

 

 

 

<Scale MajorUnit="1" Max="8" Min="1" MinorUnit=".5">

 

 

 

 

 

<Labels Color="Black" Position="Outside" Visible="False" />

 

 

 

 

 

<Ranges>

 

 

 

 

 

<telerik:GaugeRange Color="#ccffcc" From="1" To="2" />

 

 

 

 

 

<telerik:GaugeRange Color="#99ccff" From="2" To="3" />

 

 

 

 

 

<telerik:GaugeRange Color="#0067b4" From="3" To="4" />

 

 

 

 

 

<telerik:GaugeRange Color="#826eb1" From="4" To="5" />

 

 

 

 

 

<telerik:GaugeRange Color="#ffff99" From="5" To="6" />

 

 

 

 

 

<telerik:GaugeRange Color="#ff9900" From="6" To="7" />

 

 

 

 

 

<telerik:GaugeRange Color="#ff6666" From="7" To="8" />

 

 

 

 

 

</Ranges>

 

 

 

 

 

</Scale>

 

 

 

 

 

</telerik:RadRadialGauge>

 

1 Answer, 1 is accepted

Sort by
0
Niko
Telerik team
answered on 01 May 2013, 01:00 PM
Hello Chris,

The declaration of the RadGauge seems to be working just fine after a postback. Please, check the attached sample implementation. Could you, please, try changing the sample page so that the issue becomes reproducible, so that I can test it on my side?

Looking forward to you comments and sample code.

Regards,
Niko
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Gauge
Asked by
Chris
Top achievements
Rank 1
Answers by
Niko
Telerik team
Share this question
or