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
2765
UltraNumericEditor decimal input and rounding
posted

Is there any way, I can enter decimal input in UltraNumericEditor and when focus is out to that control, the value will automatically be rounded?

 

Thanks,

Parents
  • 469350
    Verified Answer
    Offline posted

         The MaskInput property contros user input, so you could set it to something like: "-nn.nnnn"

        This would allow the user to enter up to 4 digits after the decimal. Then set the FormatString, which controls the display when not in edit mode. So you could set it to something like:  "##.##"

        This would display only 2 digits when not in edit mode and it would round the value.  

Reply Children