RadGauge updates on local jost but not when published ?

3 posts, 0 answers
  1. Johan
    Johan avatar
    6 posts
    Member since:
    Oct 2015

    Posted 13 Mar 2018 Link to this post

    Hi I am goingnuts , please help me!  RadGauge needle value updates fine to specified value on local host but not when I have published the code? 


    http://temperatur.gpslogik.se/1  is the published code.  (throws input error on the Chrome developer console, I dont understand) 

    Here is part of my code!


                                    <telerik:RadLabel ID="RadLabel6" runat="server" Text="Larmtillstånd" Font-Size="Small"  AutoPostBack="True" Font-Bold="True"></telerik:RadLabel><br/>
                                    <telerik:RadLabel ID="RadLabel3" runat="server" Text="Normal" BackColor="#33CC33" Font-Bold="True" ForeColor="White" Width="300px" ></telerik:RadLabel>

                               <div class="demo-container size-thin">
                                            <telerik:RadRadialGauge runat="server" ID="RadRadialGauge1" Width="200px" Height="200px" Skin="Bootstrap">
                                                <Pointer Value="0">
                                                    <Cap Size="0.1" />
                                                <Scale Min="0" Max="40" MajorUnit="10" >
                                                    <Labels Format="{0} C°" />
                                                        <telerik:GaugeRange Color="#add8e6" From="0" To="5" />
                                                        <telerik:GaugeRange Color="Green" From="5" To="25" />
                                                        <telerik:GaugeRange Color="#ff0000" From="25" To="40" />                                     
                                   <telerik:RadHtmlChart ID="RainfallChart" runat="server" Layout="Sparkline" Width="300px" Height="60px" PlotArea-XAxis-Reversed="true">
                                                        <telerik:AreaSeries DataFieldY="RainfallData">
                                                            <Appearance FillStyle-BackgroundColor="#00b37d"></Appearance>
                                                            <TooltipsAppearance Color="White" />
                                            </telerik:RadHtmlChart><br />
                                   <telerik:RadLabel ID="RadLabel7" Text="Temperatur trend" runat="server"></telerik:RadLabel>                  
                                      <div class="demo-containers">


     OBJCONN.Close() : OBJCONN.Open()
            'Fyll dropdown med användare
            Dim Q As New SqlCommand("SELECT * FROM temperature_values where TempDescription='" & unit & "'", OBJCONN)
            Dim R As SqlDataReader = Q.ExecuteReader
            If R.HasRows = True Then
                Do While R.Read

                    adress1 = R("TemperatureAdress")
                    TidX = R("TempTimeStamp")
                    lat = R("Temperature_latitude")
                    lng = R("Temperature_longitude")
                    groupname = R("Temperatur_groupName")
                    TempDescription = R("TempDescription")
                    value = R("TempValue")
            End If
            RadLabel2.Text = "<strong>Kl: " & TidX & "<br>" & groupname & " / " & TempDescription & "<br> Temperatur är " & value & "°C</strong>" ', Senast kända adress " & adress1

            'Hämta aktuellt värde och tid för vald temperaturgivare

            RadRadialGauge1.Pointer.Value = value

            Timer1.Enabled = True
            RainfallChart.DataSource = GetData()

  2. Johan
    Johan avatar
    6 posts
    Member since:
    Oct 2015

    Posted 13 Mar 2018 in reply to Johan Link to this post

    There is an image attached here thats show my error message 
  3. Rumen
    Rumen avatar
    14374 posts

    Posted 16 Mar 2018 Link to this post

    Hi Johan,

    The error means that the value that you supplied to the Gauge is not supported and in a wrong format. I recorded and attached a video to show how to replicate the error when an incorrect value is provided. I wasn't able to replicate the JS error, but only a server-error which can be handled by performing validation of the textbox and not allowing incorrect numeric values. This can be done for example via a customvalidator.

    Best regards,
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top