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

How to set the gauge scale max value from the client

2 Answers 102 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 05 Jan 2015, 12:58 AM
Following how most of the Telerik UI controls work how do I set the scale max value of a gauge control. I cant seem to get the syntax correct. I dont quite have a handle on how the Kendo stuff works yet and my javascript is lacking :( Using the below how do I access the scale object?


var radLinearGaugeObject = $find("ctl00_MainContent_RadPanelBar1_i0_i0_gaugeRunning");            
var gaugeRunning = radLinearGaugeObject.get_kendoWidget();
?

Thanks for the help,
Brian

2 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 05 Jan 2015, 11:54 AM
Hello Brian,

You can use the options.scale.max property of the kendo widget. For example you can apply the code below on the overview demo:

$find('ctl00_ContentPlaceholder1_BarometerGauge').get_kendoWidget().options.scale.max = 1060;
$find('ctl00_ContentPlaceholder1_BarometerGauge').get_kendoWidget().redraw();


Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Brian
Top achievements
Rank 1
answered on 05 Jan 2015, 04:03 PM
Thank you very much :) 

Would be nice to see a few more examples of such code in the docs.

Brian
Tags
Gauge
Asked by
Brian
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Brian
Top achievements
Rank 1
Share this question
or