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
210
UltraNumericEditor MaskInput for positive/negative fractional values
posted

Hi,

  Infragistics.Win.UltraWinEditors.UltraNumericEditor version 12.1.20121.2075. I need an editor for a fractional number that can be positive or negative. For example, .45 or -.45. I do NOT want any digits left of the decimal point. I'm specifying a MaskInput of "-.nn" but this treats the minus sign as a literal and thus it is always visible and does not allow entry of a positive fraction. Is there a different way to specify the MaskInput that will allow positive or negative fractions without allowing input left of the decimal point?
Thanks,
John

 

Parents
No Data
Reply
  • 29105
    Verified Answer
    Offline posted

    Hello John

    Please try setting the following properties to the UltraNumericEditor:

    NumericType = Double
    FormatString = .##
    MaskInput = {double:-9.3}
    MaxValue = 0.99
    MinValue = -0.99

     

Children