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

Setting Start Value of SegmentedLinearGuageIndicators

1 Answer 22 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
JL
Top achievements
Rank 1
JL asked on 20 Jun 2014, 10:21 PM
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. 

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 25 Jun 2014, 10:42 AM
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.

 
Tags
Gauge
Asked by
JL
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or