Problem in resetting the Gauge value

2 posts, 0 answers
  1. Vivek
    Vivek avatar
    4 posts
    Member since:
    Apr 2012

    Posted 02 May 2012 Link to this post

    Hi,

    I am using the telerik Gauge contorl, i am getting issue when i change the gauge ranges in the page. For example first time page loading the min gauge value is 5000 and max value is 20000 with four ranges 5000 - 7500, 7500 - 10000, 10000 - 15000 and 15000 - 20000 when i perform some action on the page the gauge value and ranges are changed, now i am getting the min value is 50 and max value is 500 now ranges are 50 - 150, 150 - 300, 300 - 400, 400 - 500. In this scenario i am getting error as "Max value 150 is lesser than the min value". Here the max value for first range is 150 but in previous case min value of first range is 5000, since the min range value is not reset i am getting issue as "Max value 150 is lesser than the min value". so my question is how can i reset the gauge range value in runtime? 

    In my project i am using the MVVM pattern, i am using seperate class Gauge.cs for getting the gauge ranges, these are the four variables for four range of values as "very low, low, high and very high". First time all the values are propperly set and get the output fine, in the second time i am getting issue as mention above, since the ranges in class are not resetting. Please let me know me know how to solve this problem.
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 07 May 2012 Link to this post

    Hi Vivek,

    It is very complicated and it is hard to reproduce the problem without your solution. It looks like you use old version of gauge control.
    Since the 2011.Q3 release we introduced new gauge control. It is almost new control redesigned from scratch. Some of its features are similar to the old control’s features but they are implemented in absolutely different way (using different set of properties),  while others are completely new.
    Our demo application now references the new gauge control and demonstrates its features. The help topics also describe the features of the new control.
    We recommend using the new gauge control in the new applications. We would also recommend replacing old control with new one in existing applications if there is a timeframe for this task.

    Greetings,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top