Setting Start Value of SegmentedLinearGuageIndicators

2 posts, 0 answers
  1. JL
    JL avatar
    1 posts
    Member since:
    Jun 2014

    Posted 20 Jun 2014 Link to this post

    I am using a linear gauge and I wish to create the effect of overlapping bars. Currently I am dynamically adding multiple SegmentedLinearGaugeIndicators to achieve the effect, but I am having difficulty in setting the start value of the SegmentedLinearGuageIndicator. For example, I have a LinearGaugeRange with a range from 0 to 6 and I wish to dynamically place two SegmentedLinearGuageIndicators: one with a value of 3 starting at position 1 and the other with a value of 2 starting at position 3. At the moment the SegmentedLinearGuageIndicators are always starting at the default value of 0 and though I am setting the Start Value property to a non-zero value,the indicator continues to start at 0. Any help is appreciated. 
  2. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 25 Jun 2014 Link to this post

    Hello John,

    Thank you for contacting us.

    Unfortunately, there is a bug with the SegmentedLinearGaugeIndicator and the StartValue property does not work as expected. As a workaround we can suggest that you add transparent segments at the beginning of the scale.
    <telerik:SegmentedLinearGaugeIndicator Value="6">
        <telerik:BarIndicatorSegment Length="1" Stroke="Transparent" Thickness="10"/>
        <telerik:BarIndicatorSegment Length="3" Stroke="Red" Thickness="10"/>
        <telerik:BarIndicatorSegment Length="2" Stroke="Green" Thickness="10"/>
    </telerik:SegmentedLinearGaugeIndicator>

    I hope this helps. Please, let us know if you have further questions. I have also added telerik points to your account as a token of gratitude for bringing this issue to our attention.

    Regards,
    Rosy Topchiyska
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
Back to Top