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
2334
Confused with MaskInput
posted
I set the MaskInput of a column (type double) to {double:12.4:c} and set the MaskDisplayMode to IncludeLiterals.

The value of the cell is set to 1000000.00 but is displayed as 100,000,000.0000

I can set the Format to 'n4' and set MaskInput to null but then I lose formatting when the user is editting.

Why is the value being padded with zeros? How do I achieve the functionality of displaying my number with thousands separators and 4 decimal places and keeping the input mask?

Thanks.
Parents
No Data
Reply
  • 469350
    Offline posted

    I tried this out and I do not get the same results. The display of the cell in my grid when the cell does not have focus is "1,000,000.0000", which is correct. I don't know why the value of your cell is changing. Must be something else in the code doing that. 

Children