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

Editing percent value

1 Answer 180 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
David Renza
Top achievements
Rank 1
David Renza asked on 02 Sep 2010, 08:25 AM
Hello,

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">
<telerik:RadNumericUpDown.NumberFormatInfo>
<sysGlob:NumberFormatInfo PercentDecimalDigits="0"/>
</telerik:RadNumericUpDown.NumberFormatInfo>
</telerik:RadNumericUpDown>

 

 

 

 


Thanks in advance.

David

1 Answer, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 07 Sep 2010, 08:34 AM
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,
Boyan
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
NumericUpDown
Asked by
David Renza
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Share this question
or