RadNeedle issue

5 posts, 0 answers
  1. Daniel Ruehle
    Daniel Ruehle avatar
    19 posts
    Member since:
    May 2010

    Posted 28 Jul 2010 Link to this post

    Hello telerikTeam,

    I have a question about the radneedle value-property namely what is the simplest way to achieve following:

    I have a radgauge for RPM my ticks are going from 1-10, it means that the 1 represent 1000 and 10 = 10000. So my problem is when I set value of the needle to 1000 needle shows something wrong.. I want the the needle stays at 1.

    Have I to divide the needle by 1000, or is there a better Way to manage this issue ?

    Thnx

    Daniel
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 28 Jul 2010 Link to this post

    Hello Daniel Ruehle,

    You can use the Multiplier property of the scale. The sample code is below.
    <telerik:RadGauge>
        <telerik:RadialGauge>
            <telerik:RadialScale Multiplier="0.001"
                                 Max="10000"
                                 Min="1000"
                                 MajorTicks="9">
                <telerik:IndicatorList>
                    <telerik:Needle Value="1000" />
                </telerik:IndicatorList>
            </telerik:RadialScale>
        </telerik:RadialGauge>
    </telerik:RadGauge>

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Daniel Ruehle
    Daniel Ruehle avatar
    19 posts
    Member since:
    May 2010

    Posted 29 Jul 2010 Link to this post

    Hello Andrey,

    Thanks a lot for the Info.

    BR,

    Daniel
  5. Daniel Ruehle
    Daniel Ruehle avatar
    19 posts
    Member since:
    May 2010

    Posted 11 Nov 2010 Link to this post

    Hello,

    If I use the multiplier for the scale, then multiplier takes effect on all other indicators within the scale. e.g nummericindicator.
    Is it possible to break this dependency ? I want to use the multiplier for the scale, but not for the numericindicator within the scale.

    Thnak you,

    Best regards,
    Daniel
  6. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 15 Nov 2010 Link to this post

    Hi Daniel Ruehle,

    You can use additional scale without using the multiplier. The sample code below uses additional scale for numeric indicator without ticks and labels.
    <telerik:RadGauge>
        <telerik:RadialGauge>
            <telerik:RadialScale Max="10000"
                                 Min="1000"
                                 MajorTicks="-1">
                <telerik:IndicatorList>
                    <telerik:NumericIndicator Top="0.7"
                                              Left="0.395"
                                              BorderThickness="0"
                                              RelativeHeight="0.2"
                                              RelativeWidth="0.4"
                                              FontFamily="Arial"
                                              FontSize="18"
                                              Format="{}{0:F0}"
                                              Value="1000">
                        <telerik:NumberPosition />
                        <telerik:NumberPosition />
                        <telerik:NumberPosition />
                        <telerik:NumberPosition />
                        <telerik:NumberPosition />
                    </telerik:NumericIndicator>
                </telerik:IndicatorList>
            </telerik:RadialScale>
            <telerik:RadialScale Multiplier="0.001"
                                 Max="10000"
                                 Min="1000"
                                 MajorTicks="9">
                <telerik:IndicatorList>
                    <telerik:Needle Value="1000" />
                </telerik:IndicatorList>
            </telerik:RadialScale>
        </telerik:RadialGauge>
    </telerik:RadGauge>

    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
UI for WPF is Visual Studio 2017 Ready