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
1921
How to set max length for XamNumericEditor
posted

I'm using XamNumericEditor, it accepts max value of xxx,xxx,xxx

but I need this to accept 18 digits, what can I do for this?

 

My code is,

this.Mask = string.Format("{{double:-{0}.{1}}}", 18, 8);

Thanks in advance

Parents
No Data
Reply
  • 54937
    Offline posted

    While the control will accept that mask and provide 18 decimal characters and 8 fraction characters, I don't think the double structure can maintain that many digits of precision. If you want to utilize that full range then perhaps you should set the ValueType to decimal.

Children