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

Resize Kendo redial gauge with css

1 Answer 172 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Blair
Top achievements
Rank 1
Blair asked on 04 Jun 2013, 12:17 AM
Hi,
I have checked the demo of kendo redial gauge and found all the demo code for kendo redial gauage size are fixed number,  without any percentage.  I have changed the css file to percentage, but the background image and gauge never be able to fit together. Will anybody provide some sample code? Many thanks. George

  #gauge-container {
            border-style:solid;
            border-color:red; 
            background:  transparent url(@Url.Content("~/Content/images/gauge-container-partial.png"))  ;
            background-vertical-position: -500% ;
            background-size: 100% 100%;
            width: auto;
            height: 100%;
            text-align: center;
            margin: -10% auto auto auto;
        }

        #SMDRReceiverMonitorChart {
            border-style:solid;
            border-color:blue; 
            width: auto;
            height: auto;
            align: center;
            margin: auto auto auto auto;
            
            border-color: transparent;
        }

        #gauge-container .k-slider {
           margin-top: -11px;
            width: 140px;
            
        } 
  

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 05 Jun 2013, 07:42 PM
Hi George,

I am afraid it is not possible to stretch Kendo UI Radial Gauge to fill 100% width and to fit with the image. Please keep in mind the background image in the online demo is set only for additional styling, it is not part from the Radial Gauge. 

Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Gauges
Asked by
Blair
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or