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
4165
WinGrid MaskInput
posted

Hello: I have had a few questions on this in the past and it looks like I almost have it:

I have a field where a user can enter a markup, the format is set to ##.##

I have set the mask input to ##.## as well so that when the user clicks on the cell it does not look like 41.90391091

Now the only issue is that in order to comit the cell, the must put in XX.XX, vs just XX for instance. I understand why but is there a way to allow them to just enter 1 or 2 digits of the mask?

Another example

User wants to enter 30 into cell...but cell is requring 30.00

Thanks.

Parents
  • 69832
    Verified Answer
    Offline posted

    According to the documentation for the UltraGridColumn.MaskInput property, '#' denotes required numeric entry, whereas '9' denotes non-required numeric entry, so you should make your mask "##.99". Note that the 'n' mask specifier also denotes non-required numeric entry, and causes the input to flow from right to left.

Reply Children
No Data