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
275
WebNumericEditor disable comma
posted

Hello,

 

How can i set the format of the number to not display the commas? I don't see a format property.

 

thanks

tom

 

Parents
No Data
Reply
  • 24497
    Verified Answer
    posted

    Hi Tom,

    Allmost all aspects of format come from NumberFormatInfo class (which is a member of CultureInfo). Among other properties it has XxxxGroupSizes. The Xxx will depend on class of editor: Currency/Numeric/Percent. In order to modify that, you should create an instance of that class, set desired properties and assign it to NumberFormat property of WebNumericEdit. To remove group/thousand separators you may try to use something like [1000] (first group with large number). That can be done anywhere in codes, for example, within Page.OnLoad event.

    Installation also provides few samples for custom cultures and formats.

Children