New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

NumberFormat Client Object

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. The following table lists its properties:

 

PropertyTypeDescription
AllowRoundingbooleanSpecifies whether values are rounded (true) or truncated (false) when not all the decimal places can be shown.
DecimalDigitsintegerSpecifies the number of decimal places to show.
DecimalSeparatorcharacterSpecifies the character that separates the whole number from the decimal places.
GroupSeparatorcharacterSpecifies the character that divides groups of digits.
GroupSizesintegerSpecifies the number of digits in each group.
NegativePatternstringSpecifies the pattern for formatting negative values.
NegativeSigncharacterSpecifies the character to use as a minus sign.
PositivePatternstringSpecifies the pattern for formatting positive values.

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.

See Also

In this article
See Also
Not finding the help you need?
Contact Support