NumberFormatSettings
Class holding settings for number formating which are applied on RadNumericTextBox value.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class NumberFormatSettings : ICustomTypeDescriptor
Inheritance: objectNumberFormatSettings
Implements:
Inherited Members
Constructors
public NumberFormatSettings(IRadNumericTextBox numericTextBox, StateBag viewStateOwner)
Properties
Gets or sets the value that indicates whether the value will be rounded.
[ClientControlProperty]
public bool AllowRounding { get; set; }
The value that indicates whether the value will be rounded.
Gets the native decimal separator of the control's culture.
[ClientControlProperty]
public string CultureNativeDecimalSeparator { get; }
Gets or sets the number of decimal places to use in numeric values
[ClientControlProperty]
public int DecimalDigits { get; set; }
The number of decimal places to use in values.
Gets or sets the string to use as the decimal separator in values.
[ClientControlProperty]
public string DecimalSeparator { get; set; }
The string to use as the decimal separator in values.
Exceptions: ArgumentExceptionThe property is being set to an empty string.
ArgumentNullExceptionThe property is being set to null.
Gets or sets the string that separates groups of digits to the left of the decimal in values.
[ClientControlProperty]
public string GroupSeparator { get; set; }
The string that separates groups of digits to the left of the decimal in values.
Exceptions: ArgumentNullExceptionThe property is being set to null.
Gets or sets the number of digits in each group to the left of the decimal in values.
[ClientControlProperty]
public int GroupSizes { get; set; }
The number of digits in each group to the left of the decimal in values.
Exceptions: ArgumentNullExceptionThe property is being set to null.
Gets or sets the value that indicates whether the control will keep his not rounded value on edit mode.
[ClientControlProperty]
public bool KeepNotRoundedValue { get; set; }
The value that indicates whether the control will keep his not rounded value on edit mode.
Gets or sets whether the control will keep its trailing zeros (according to the DecimalDigits setting) when focused.
[ClientControlProperty]
public bool KeepTrailingZerosOnFocus { get; set; }
Determines whether the control will keep its trailing zeros (according to the DecimalDigits setting) when focused.
Gets or sets the format pattern for negative values.
[ClientControlProperty]
public string NegativePattern { get; set; }
The format pattern for negative percent values.
Exceptions: ArgumentOutOfRangeExceptionThe property is being set to a value that is less than 0 or greater than 11.
Gets or sets numeric value placeholder inside PositivePattern/NegativePattern.
public string NumericPlaceHolder { get; set; }
The numeric value placeholder inside PositivePattern/NegativePattern.
Gets or sets the format pattern for positive values.
[ClientControlProperty]
public string PositivePattern { get; set; }
The format pattern for positive percent values. The
Exceptions: ArgumentOutOfRangeExceptionThe property is being set to a value that is less than 0 or greater than 3.
Gets or sets the format pattern for zero values.
[ClientControlProperty]
public string ZeroPattern { get; set; }
The format pattern for zero percent values. The
Exceptions: ArgumentOutOfRangeExceptionThe property is being set to a value that is less than 0 or greater than 3.