Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
UltraNumericEditor Edit mode behaviour: 0.00 as #.00
posted

Which is the best way to use a UltraNumericEditor with a MaskInput value of 'nnn,nnn.nn' in such a way that when editing a value of 0.00, the zero at the left of the decimal separator will not appear? Do I need to use a different MaskInput? I tried '#.nn' and '###,###.nn', but the behaviour of the editor is not acceptable.

Example:

Editor has value of 0.00; user clicks on editor, entering in edit mode; the editor has the curret at the left of the decimal separator, visible "text" is '.00'

Editor has value of 1.00; user clicks on editor, entering in edit mode; the editor has the curret at the left of the one, visible "text" is '1.00'