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
155
UltraNumericEditor Displays to many 0
posted

Hi,

I would like to set up a UltraNumericEditor with a MaskInput like {double:10.10} (no negative numbers)

The user should be able to set something like 1,000.9876543219

If a users sets a Value of 10 I only want to see 10, if he enters 20.5 I only want to see 20.5, but with this Mask I see 10.0000000000 or 20.5000000000. I also tried n,nnn,nnn,nnn.nnnnnnnnnn and #,###,###,###.########## but with # I must enter 10 times 0 otherwise I'm unable to leave the control.

Any tip how to set the MaskInput, so it is readable and displaying the minimum of digits would be great.

Regards,

Chris

 

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Chris,

    There's no way to eliminate trailing zeroes. Perhaps you would be better off using UltraTextEditor and validating the value instead of using a Masked Input control like UltraNumericEditor.

Reply Children