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

Resizing the gauge for responsive websites

1 Answer 271 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
aditya
Top achievements
Rank 1
aditya asked on 11 Feb 2014, 07:28 AM
Is there any way we can resize the gauge with css media queries for our responsive websites?

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 12 Feb 2014, 03:52 PM
Hi Aditya,

I am afraid resizing the Kendo UI Gauge via media queries is not supported. What I can suggest is redrawing the gauge when a browser window is resized. As an example: 
$(window).resize(function(){
   var gauge = $("#gauge").data("kendoRadialGauge");
   gauge.resize();
})

Regards,
Iliana Nikolova
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Tags
Gauges
Asked by
aditya
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or