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

2 posts, 0 answers
  1. David Huxtable
    David Huxtable avatar
    14 posts
    Member since:
    Mar 2009

    Posted 25 Nov 2013 Link to this post

    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,

  2. Vladi
    Vladi avatar
    743 posts

    Posted 27 Nov 2013 Link to this post


    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.

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