New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Class holding settings for number formating which are applied on RadNumericTextBox value.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public class NumberFormatSettings : ICustomTypeDescriptor

Inheritance: objectNumberFormatSettings

Implements: ICustomTypeDescriptor

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public NumberFormatSettings(IRadNumericTextBox numericTextBox, StateBag viewStateOwner)
Parameters:numericTextBoxIRadNumericTextBoxviewStateOwnerStateBag

Properties

Gets or sets the value that indicates whether the value will be rounded.

C#
[ClientControlProperty]
public bool AllowRounding { get; set; }
Property Value:

The value that indicates whether the value will be rounded.

Gets the native decimal separator of the control's culture.

C#
[ClientControlProperty]
public string CultureNativeDecimalSeparator { get; }

Gets or sets the number of decimal places to use in numeric values

C#
[ClientControlProperty]
public int DecimalDigits { get; set; }
Property Value:

The number of decimal places to use in values.

Gets or sets the string to use as the decimal separator in values.

C#
[ClientControlProperty]
public string DecimalSeparator { get; set; }
Property Value:

The string to use as the decimal separator in values.

Exceptions: ArgumentException

The property is being set to an empty string.

ArgumentNullException

The property is being set to null.

Gets or sets the string that separates groups of digits to the left of the decimal in values.

C#
[ClientControlProperty]
public string GroupSeparator { get; set; }
Property Value:

The string that separates groups of digits to the left of the decimal in values.

Exceptions: ArgumentNullException

The property is being set to null.

Gets or sets the number of digits in each group to the left of the decimal in values.

C#
[ClientControlProperty]
public int GroupSizes { get; set; }
Property Value:

The number of digits in each group to the left of the decimal in values.

Exceptions: ArgumentNullException

The 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.

C#
[ClientControlProperty]
public bool KeepNotRoundedValue { get; set; }
Property Value:

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.

C#
[ClientControlProperty]
public bool KeepTrailingZerosOnFocus { get; set; }
Property Value:

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.

C#
[ClientControlProperty]
public string NegativePattern { get; set; }
Property Value:

The format pattern for negative percent values.

Exceptions: ArgumentOutOfRangeException

The 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.

C#
public string NumericPlaceHolder { get; set; }
Property Value:

The numeric value placeholder inside PositivePattern/NegativePattern.

Gets or sets the format pattern for positive values.

C#
[ClientControlProperty]
public string PositivePattern { get; set; }
Property Value:

The format pattern for positive percent values. The

Exceptions: ArgumentOutOfRangeException

The 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.

C#
[ClientControlProperty]
public string ZeroPattern { get; set; }
Property Value:

The format pattern for zero percent values. The

Exceptions: ArgumentOutOfRangeException

The property is being set to a value that is less than 0 or greater than 3.

Methods

C#
protected virtual bool ShouldSerializeDecimalDigits()
Returns:

bool

C#
protected virtual bool ShouldSerializeDecimalSeparator()
Returns:

bool

C#
protected virtual bool ShouldSerializeGroupSeparator()
Returns:

bool

C#
protected virtual bool ShouldSerializeGroupSizes()
Returns:

bool

C#
protected virtual bool ShouldSerializeNegativePattern()
Returns:

bool

C#
protected virtual bool ShouldSerializePositivePattern()
Returns:

bool