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
325
UltraMaskedEditor
posted

I have an UltraMaskedEdit with the following properties

EditAs = Double

InputMask = {double:3.2}

MaxValue = dbl 100

Min dbl = 0

The control is allowing me to enter 100.25 and doesn't throw an error message until i tab out.  I want to block the user from being able to enter any values greater then 100.  Any help would be appreciated.  Thanks

 

Parents
No Data
Reply
  • 37774
    posted

    I don't think that there's anything built into the control to handle this because it was designed in such a way as the user could have "99.99" as a value and decide to change the part before the decimal first (i.e. make it 100) before removing the decimal portion, so we would be forcing the user to basically change the value to "99.0" before changing it to "100.0".  You might be able to do something in the TextChanged event, but I don't think that there's any cancellable event that will allow you to prevent the user from typing in this case.

    -Matt

Children
No Data