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

2 posts, 0 answers
  1. Renato de Moraes Felipe
    Renato de Moraes Felipe avatar
    1 posts
    Member since:
    Mar 2010

    Posted 04 Mar 2010 Link to this post

     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:

            <gauge:RadialScale Name="radialScale" Min="0" Max="3" MajorTickStep="1000">  
                    <gauge:Needle Name="needle" Value="1.5" IsAnimated="True" /> 
                    <gauge:NumericIndicator Name="numericIndicator" 
                        <gauge:NumberPosition /> 
                        <gauge:NumberPosition /> 
                        <gauge:NumberPosition /> 
                        <gauge:NumberPosition /> 
                        <gauge:NumberPosition /> 
                        <gauge:NumberPosition /> 
                        <gauge:NumberPosition /> 
                        <gauge:NumberPosition /> 
                        <gauge:NumberPosition /> 
                        <gauge:NumberPosition /> 
                    <gauge:RadialRange Name="cor1" Min="0" 
                    <gauge:RadialRange Name="cor2" Min="1" 
                    <gauge:RadialRange Name="cor3" Min="2" 

    Renato de Moraes Felipe

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 09 Mar 2010 Link to this post

    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.
Back to Top