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

When value is greater than max

4 Answers 26 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Anj
Top achievements
Rank 1
Anj asked on 13 Sep 2010, 10:35 AM
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.

4 Answers, 1 is accepted

Sort by
0
Anj
Top achievements
Rank 1
answered on 14 Sep 2010, 01:46 PM
Can someone please reply?

This clearly looks like a bug. Will it be fixed in the near future?
0
Andrey
Telerik team
answered on 15 Sep 2010, 02:53 PM
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
0
ryan
Top achievements
Rank 1
answered on 11 May 2016, 10:54 PM
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?
0
Martin Ivanov
Telerik team
answered on 13 May 2016, 08:12 AM
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.
Tags
Gauge
Asked by
Anj
Top achievements
Rank 1
Answers by
Anj
Top achievements
Rank 1
Andrey
Telerik team
ryan
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or