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
300
Arrow Up/Down actions in an empty UltraNumericEditor with MaskInput
posted

 Is there any way to control the behavior of the Up/Down arrow keys in an UltraNumericEditor? I'm getting undesireable behavior with the following settings when the editor value  is empty.

ultraNumericEditor1.NumericType = Infragistics.Win.UltraWinEditors.NumericType.Double;
ultraNumericEditor1.MaskInput = "{double:-" + 17 + "." +  3 + "}";

If I press DownArrow, nothing happens. That's OK.
If I press UpArrow, the editor is populated with the following value: "-99,999,999,999,999,999"

 

If I don't set the MaskInput, the UpArrow yields the expected behavior, setting the editor value to "0"

 

thanks

Stefan 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    My guess is that Value will get set to the MinValue. So try setting the MinValue to 0 - assuming you want the MinValue to be 0.

    Otherwise, I think you might have to try handling the KeyDown event and marking it handled.

    Another possible solution might be to alter the KeyActionMappings, but you would probably have to completely disable the arrow keys and handle them youself if you go that route.  

Children