Editing percent value

2 posts, 0 answers
  1. David Renza
    David Renza avatar
    13 posts
    Member since:
    May 2010

    Posted 02 Sep 2010 Link to this post


    I have a little problem with editing value when ValueFormat is set to Percent. When control has no focus, the value I see is "250 %". When I focus the control to edit value, the value of control change to "2.5". Can the edited value be "250 %" instead of "2.5" ?

    The control is set something like that: 

    <telerik:RadNumericUpDown Value="{Binding Rate, Mode=TwoWay}" ValueFormat="Percentage" LargeChange="0.2" SmallChange="0.1">
    <sysGlob:NumberFormatInfo PercentDecimalDigits="0"/>





    Thanks in advance.

  2. Boyan
    Boyan avatar
    758 posts

    Posted 07 Sep 2010 Link to this post

    Hello David Renza,

    The formatting behavior of percentage values in RadNumericUpDown is based on Microsoft's API for string formatting in which you have the value of 1 formatted as 100%. If is not suitable for you this way, you can easily set the ValueFormat to Numeric and set as the CustomUnit to "%".

    Kind regards,
    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. DevCraft R3 2016 release webinar banner
Back to Top