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

Changing NumericUpDown control to display the editing of a percentage value no different to displaying a percentage value when not in editing mode

1 Answer 157 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
David Huxtable
Top achievements
Rank 1
David Huxtable asked on 25 Nov 2013, 08:38 AM
Good Afternoon,

The experience I'd like to my user is to update a percentage value with 2 decimal places via the up/down buttons without the percentage sign disappearing and extra zeroes appearing at the end whilst the user is editing the value.

Basically I'd like for the display not to change whence the value is edited.

Is it possible to format the editing to look the same as when the box is not being edited?

For example, if the value displays as 5.00 % as the user presses the up directional button, I would like the editing to read "5.01 %" and then "5.02 %" etc. rather then "5.0100", "5.0200" etc.

I hope this makes sense.

Thank you in advance,

David

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 27 Nov 2013, 12:09 PM
Hello,

In the current version of RadNumericUpDown control it is not possible to retain the "%" symbol when the control is focused because it enters editing mode. In that mode the text displayed in the control's TextBox is used for the build-in parsing and the special symbols are removed. You can take a look at this help article that describes the different formatting possibilities of the control.

If the desired behavior is to have a masked formatting you can take a look at our RadMaskedInput controls which could be useful in your scenario.

Regards,
Vladi
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
NumericUpDown
Asked by
David Huxtable
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or