the webNumeriEdit is rounding the the values to 2 decimal digits only. (i.e.: 112.1234567 -> 112.12). Does anybody have a clue how to fix this?
It may works when setting the value of MinDecimalPlaces but I would consider that as a work around and not a solution since it will add zeros even for integer numbers.
All format related properties like pattern, decimal places, etc. are defined by current CultureInfo. If you want different format for a particular instance of editor, then you should use Culture property at visual design or NumberFormat at run time. There are should be samples related to custom cultures which came with installation. Below is example:
System.Globalization.NumberFormatInfo nf = new System.Globalization.NumberFormatInfo();nf.NumberDecimalDigits = 10;this.WebNumEdit1.NumberFormat = nf;
I'm trying to use any of the editors to apply a simple mask to a decimal field. My field should allow up to 4 decimal digits WITHOUT rounding. I'm using v9.2.
WebNumericEdit type Decimal with mask of 999999.9999 or CCCCCC.CCCC - either one requirs the user enter all 6 digits before they can enter a decimal point, and they round to 2 decimal points. That is horribly non-user friendly.
How do I make it so the user can type 3 (or 1 or 2..) digits to the left of a decimal point, the decimal point and then the decimal value?
Having to create a custom numberformat at runtime for each textbox to allow an actual decimal number (not strictly 2 decimal digits) is a real pain. If that is actually the way this operates I think it should go back to the drawing board - far too complicated. Really bad design.
Am I missing something obvious? I really hope so..
Oh well. Back to a textbox with a maskededitextender.
How about formatting the WebDataGrid cell round to 1,000 on cell editing. For example, user enters 12,500 and it rounds to 13,000; user enters 12,300 and it round to 12,000. I tried to use boundField.DataFormatString = "{?:??}. Anyone have idea? Thanks.