title | page_title | description | slug | tags | published | position |
---|---|---|---|---|---|---|
NumberFormat Client Object |
NumberFormat Client Object - RadNumericTextBox |
Check our Web Forms article about NumberFormat Client Object. |
numerictextbox/client-side-programming/numberformat-client-object |
numberformat,client,object |
true |
7 |
The NumberFormat client object determines how a RadNumericTextBox control formats its value when it does not have focus. It is returned by the get_numberFormat() method of the [RadNumericTextBox client-side object]({%slug numerictextbox/client-side-programming/radnumerictextbox-client-object%}). The following table lists its properties:
caption
Property | Type | Description |
---|---|---|
AllowRounding | boolean | Specifies whether values are rounded (true) or truncated (false) when not all the decimal places can be shown. |
DecimalDigits | integer | Specifies the number of decimal places to show. |
DecimalSeparator | character | Specifies the character that separates the whole number from the decimal places. |
GroupSeparator | character | Specifies the character that divides groups of digits. |
GroupSizes | integer | Specifies the number of digits in each group. |
NegativePattern | string | Specifies the pattern for formatting negative values. |
NegativeSign | character | Specifies the character to use as a minus sign. |
PositivePattern | string | Specifies the pattern for formatting positive values. |
caution RadNumericTextBox's get_value() method will return an empty string instead of a numeric value when the input is empty. Therefore, if you want to determine whether the entered value is zero, you should use "===" for comparison in order to prevent the confusion with the empty value.
-
[Formatting Numeric Values]({%slug numerictextbox/features/formatting-numeric-values%})