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

"Bounce" Needle at gauge maximum

1 Answer 47 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 10 Apr 2015, 02:09 PM

As the title suggests, I'm trying to work with the max value of the gauge with my data and I'm having little luck. I am fairly new to telerik/wpf, so maybe that's also part of the issue, but what I'm wanting to do is stop the needle at the maximum value (my gauge goes from 0-200, if it's over that value, it just continues along the gauge until it goes past 0 again and the data is skewed). 

 

I've seen an example somewhere of a gauge that when the maximum is exceeded, it stops there and kind of bounces back and forth, as if to indicate it's trying to reach past that point but can't. Is there a way to do this that I'm unaware of?

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 15 Apr 2015, 08:46 AM
Hello Josh,

I can understand your requirement.

However, it is important to keep in mind that the RadGauge is data visualization control. This means that it has no logic for restricting its indicators to the scales that are defined in its context. It visualizes the data that is provided, only. I am not aware of any demo project demonstrating the described functionality. If you can find where you have seen that behavior maybe I will be able to point you in the right direction.

On the other hand, in order to achieve your requirement you will need to implement custom logic for restricting the indicator at the maximum of the scale. You can take advantage of the IsAnimated property of the indicator so that it will smoothly move the the assigned position when you change its Value property.

Please give this approach a try and let us know if you need any further assistance.

Regards,
Pavel R. Pavlov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Gauges
Asked by
Josh
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or