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

PartialView - load gauge

2 Answers 56 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
leblanc
Top achievements
Rank 1
leblanc asked on 25 Apr 2013, 05:57 AM
I tried loading the gauge using a partial view

<body style="padding: 0px;margin: 0px;height:100%;">
    <div id="Replace@(uid)" style="width: 100%;height: 100%;position: relative;"></div>
 
    <script type="text/javascript">
        jQuery(function () {
            jQuery.get('@Url.Action("Chart","SalesTarget", Request.QueryString.ToRouteValues())', function (data) {
                $('#Replace@(uid)').html(data);
            });
        });
    </script>
</body>


unfortunately this approach leads to a javascript "unresponsive script" error.
the chart title shows up so my markup is added to the page - but the kendo initialization is NOT completing.

This is the only script loaded in partial..
jQuery(function(){jQuery("#charte5d435958d7e47569bd533bd3bd63d11").kendoRadialGauge({"pointer":{"value":0},"scale":{"minorUnit":5,"min":0,"max":2352000002.3961,"ranges":[{"from":0,"to":1568000001.5974,"color":"f2dd30"},{"from":1568000001.5974,"to":2352000002.3961,"color":"399E38"}],"endAngle":180,"startAngle":0},"theme":"bootstrap"});});

2 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 29 Apr 2013, 08:55 AM
Hello Leblanc,

We tried reproducing the problem with the attached solution, but it did not appear. Please modify the solution so that it shows the problem.

Greetings,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
leblanc
Top achievements
Rank 1
answered on 29 Apr 2013, 11:57 AM
the problem was the numbers were to big - with smaller numbers it didn't run into this issue.  So it has to be a unit problem or byte size for int capacity.

We are showing the graphs in millions now.
Tags
Gauges
Asked by
leblanc
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
leblanc
Top achievements
Rank 1
Share this question
or