How to set the gauge scale max value from the client

3 posts, 0 answers
  1. Brian
    Brian avatar
    4 posts
    Member since:
    Nov 2011

    Posted 04 Jan 2015 Link to this post

    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,
  2. Danail Vasilev
    Danail Vasilev avatar
    1476 posts

    Posted 05 Jan 2015 Link to this post

    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;

    Danail Vasilev

    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.

  3. DevCraft R3 2016 release webinar banner
  4. Brian
    Brian avatar
    4 posts
    Member since:
    Nov 2011

    Posted 05 Jan 2015 in reply to Danail Vasilev Link to this post

    Thank you very much :) 

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

Back to Top