When value is greater than max

5 posts, 0 answers
  1. Anj
    Anj avatar
    8 posts
    Member since:
    Jul 2010

    Posted 13 Sep 2010 Link to this post

    I create a gauge at runtime, assign the min and max values based on some XML file. The value is bound to a response from the server. When the value coming from the server is greater than the max value, the gauge is displayed wrongly. See the attached file. In this gauge, min=0, max=50 and value =100. Min and max remain the same, but the needle is somewhere random.
  2. Anj
    Anj avatar
    8 posts
    Member since:
    Jul 2010

    Posted 14 Sep 2010 Link to this post

    Can someone please reply?

    This clearly looks like a bug. Will it be fixed in the near future?
  3. DevCraft banner
  4. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 15 Sep 2010 Link to this post

    Hello Ana,

    The gauge works as expected. The RadGauge can show values outside the scale range (for OFF position, for example, or when there are several different scales in the same gauge). It does not round values outside the scale range to the min or max value. In your case the maximum value of the gauge is 50. The value you are trying to show (100) is greater than max value. So indicators make several turns around the scale.

    Greetings,
    Andrey Murzov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. ryan
    ryan avatar
    1 posts
    Member since:
    Apr 2016

    Posted 11 May in reply to Andrey Link to this post

    i know this post was oh so long ago, but is there any way to stop RadGauge indicator from exceeding the the min max scaled values?
  6. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 13 May Link to this post

    Hello Ryan,

    In order to stop the indicator from exceeding the min and max values of the scale you can coerce the indicator's Value property before changing it. For example, before setting the property  you could check if the value is outside of the scale's range (the min and max values). If so, do not change the value or update it so that it is in the range.

    Regards,
    Martin
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top
DevCraft banner