Gauge Changes Format on Postback

2 posts, 0 answers
  1. Chris
    Chris avatar
    5 posts
    Member since:
    Apr 2012

    Posted 30 Apr 2013 Link to this post

    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>

     

  2. Niko
    Admin
    Niko avatar
    387 posts

    Posted 01 May 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top