"Bounce" Needle at gauge maximum

2 posts, 0 answers
  1. Josh
    Josh avatar
    1 posts
    Member since:
    Apr 2015

    Posted 10 Apr 2015 Link to this post

    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?

  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1240 posts

    Posted 15 Apr 2015 Link to this post

    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.

    Pavel R. Pavlov

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

Back to Top