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

RadGauge updates on local jost but not when published ?

2 Answers 72 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Johan
Top achievements
Rank 1
Johan asked on 13 Mar 2018, 12:41 PM

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" />
                                            </Pointer>
                                            <Scale Min="0" Max="40" MajorUnit="10" >
                                                <Labels Format="{0} C°" />
                                                <Ranges>
                                                    <telerik:GaugeRange Color="#add8e6" From="0" To="5" />
                                                    <telerik:GaugeRange Color="Green" From="5" To="25" />
                                                    <telerik:GaugeRange Color="#ff0000" From="25" To="40" />                                     
                                                </Ranges>
                                            </Scale>
                                        </telerik:RadRadialGauge>
                               <p></p>
                               <telerik:RadHtmlChart ID="RainfallChart" runat="server" Layout="Sparkline" Width="300px" Height="60px" PlotArea-XAxis-Reversed="true">
                                            <PlotArea>
                                                <Series>
                                                    <telerik:AreaSeries DataFieldY="RainfallData">
                                                        <Appearance FillStyle-BackgroundColor="#00b37d"></Appearance>
                                                        <TooltipsAppearance Color="White" />
                                                    </telerik:AreaSeries>
                                                </Series>
                                            </PlotArea>
                                        </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")
            Loop
        End If
        OBJCONN.Close()
        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()
        RainfallChart.DataBind()

2 Answers, 1 is accepted

Sort by
0
Johan
Top achievements
Rank 1
answered on 13 Mar 2018, 12:44 PM
There is an image attached here thats show my error message 
0
Rumen
Telerik team
answered on 16 Mar 2018, 12:35 PM
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,
Rumen
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.
Tags
Gauge
Asked by
Johan
Top achievements
Rank 1
Answers by
Johan
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or