Wednesday, 9 July 2014

Infragistic WebNumericEditor disable comma

WebNumericEditor has Culture property, which can be used exactly same way as NumberFormat of WebNumericEdit:
System.Globalization.CultureInfo ci = System.Globalization.CultureInfo.CreateSpecificCulture("en-US");
ci.NumberFormat.NumberGroupSizes = new int[]{0};
//ci.NumberFormat.NumberDecimalSeparator = ",";
//ci.NumberFormat.NumberGroupSeparator = ".";
this.WebNumericEditor1.Culture = ci;

No comments:

Post a Comment