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
330
UltraNumeric Editor Mask Input for ? is breaking.
posted

HI All,

  When i try to maskinput for the ultraNumeric editor with the value "?" it is breaking.i am trying to set the value as follows

editor.NumericType = NumericType.Double;

editor.MaskInput ={double:-9.2}

editor.Nullable = true;

editor.MaskInput+="(?)"

i am getting error from the above line only when i try to set "?". it is working for "%" and other things.

Error details are as follows

Inner exception :"The specified mask is not compatible with the current value of the 'NumericType' property."

Stack Trace : at Infragistics.Win.UltraWinEditors.UltraNumericEditor.set_MaskInput(String value)

source :"Infragistics2.Win.UltraWinEditors.v6.3"

Regards

Vijay A

  • 469350
    Offline posted

    The question mark is a mask character and you can't mix another mask character onto the end of an existing pre-defined mask.

    If you are trying to display a literal question mark after the value in the NumericEditor, then you I think you have to escape it like so:

    editor.MaskInput+="(\?)"