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

Problem when changing ownership Max and MajorTickStep of the RadialScale in time execution

1 Answer 91 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Renato de Moraes Felipe
Top achievements
Rank 1
Renato de Moraes Felipe asked on 04 Mar 2010, 08:10 PM

 I have in my application that change the properties Max and MajorTickStep in time execution, but when I change the value Max to 6000000 and MajorTickStep to 2000000, my application hangs.

The code of the gauge is:

<telerik:RadGauge> 
    <gauge:RadialGauge> 
        <gauge:RadialScale Name="radialScale" Min="0" Max="3" MajorTickStep="1000">  
            <gauge:IndicatorList> 
                <gauge:Needle Name="needle" Value="1.5" IsAnimated="True" /> 
                <gauge:NumericIndicator Name="numericIndicator" 
                    Format="{}{0:F2}" 
                    Left="0.32" 
                    Top="0.65" 
                    RelativeWidth="0.55" 
                    RelativeHeight="0.16" 
                    Value="1.5">  
                    <gauge:NumberPosition /> 
                    <gauge:NumberPosition /> 
                    <gauge:NumberPosition /> 
                    <gauge:NumberPosition /> 
                    <gauge:NumberPosition /> 
                    <gauge:NumberPosition /> 
                    <gauge:NumberPosition /> 
                    <gauge:NumberPosition /> 
                    <gauge:NumberPosition /> 
                    <gauge:NumberPosition /> 
                </gauge:NumericIndicator> 
            </gauge:IndicatorList> 
            <gauge:RangeList> 
                <gauge:RadialRange Name="cor1" Min="0" 
                    Max="1" 
                    Location="OverCenter" 
                    StartWidth="0.1" 
                    EndWidth="0.1" 
                    Background="Green" 
                    BorderBrush="Green"/>  
                <gauge:RadialRange Name="cor2" Min="1" 
                    Max="2" 
                    Location="OverCenter" 
                    StartWidth="0.1" 
                    EndWidth="0.1" 
                    Background="Yellow" 
                    BorderBrush="Yellow"/>  
                <gauge:RadialRange Name="cor3" Min="2" 
                    Max="3" 
                    Location="OverCenter" 
                    StartWidth="0.1" 
                    EndWidth="0.1" 
                    Background="Red" 
                    BorderBrush="Red"/>  
            </gauge:RangeList> 
        </gauge:RadialScale> 
    </gauge:RadialGauge> 
</telerik:RadGauge> 

Thanks,
Renato de Moraes Felipe

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 09 Mar 2010, 12:21 PM
Hello Renato de Moraes Felipe,

Thank you for the feedback.
According to your code initially you have 1000 as MajorTickStep value. So, if you change the Max value to 6000000 before changing the MajorTickStep, then the scale creates ticks and labels according old MajorTickStep value. It looks like a hang because the scale creates a lot of objects.
Try to change your code to specify MajorTickStep first and then Max value.

Kind regards,
Andrey Murzov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Gauge
Asked by
Renato de Moraes Felipe
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or