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
2725
commas - off
posted

Can I turn off commas in WebNumbericEditor?

 

Gary

Parents
  • 13438
    posted

    Hello Gary

    What you are asking is connected with the culture used in the WNE . When you select the editor go to its properties (right click when in design view and the last option is Properties) and go to the Culture property. The default culture separates the number with a comma per three digits counted from the tale cause it is en-US or some other culture which uses this styling for big numbers. You can modify the separators in your current culture the following way:

    protected void Page_Load(object sender, EventArgs e)

        {

            CultureInfo ci = Thread.CurrentThread.CurrentCulture;

            WebNumericEditor1.Culture = new CultureInfo(ci.Name);

            WebNumericEditor1.Culture.NumberFormat.NumberGroupSeparator = "";

        }



    If you have more questions about this issue do not hesitate to ask.

Reply Children