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

Class holding settings determining the how the number will be displayed.

Definition

Constructors

C#
public NumericTextBoxSetting()

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 or sets the culture used by NumericTextBoxSetting to format the numburs.

C#
[Browsable(true)]
public CultureInfo Culture { get; set; }
Property Value:

A CultureInfo object that represents the current culture used. The default value is System.Threading.Thread.CurrentThread.CurrentUICulture.

Implements: IRadNumericTextBox.Culture

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 time, in milliseconds, the InvalidStyle should be displayd. Must be a positive integer.

C#
public virtual int InvalidStyleDuration { get; set; }
Property Value:

The Time, in milliseconds, the InvalidStyle should be displayd. Must be a positive integer.

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 largest possible value of a NumericTextBoxSetting.

C#
public virtual double MaxValue { get; set; }
Property Value:

The default value is positive 2^46.

Gets or sets the smallest possible value of a RadNumericTextBox.

C#
public virtual double MinValue { get; set; }
Property Value:

The smallest possible value of a RadNumericTextBox.

Gets or sets the CSS style applied to control when is negative.

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

The CSS style applied to control when is negative.

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.

C#
protected virtual NumberFormatSettings NumberFormat { get; }

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 type of the RadNumericTextBox.

C#
public virtual NumericType Type { get; set; }
Property Value:

The type of the RadNumericTextBox.

Implements: IRadNumericTextBox.Type

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

Validates the specified TextBox control with supplied context.

C#
public override void Validate(TextBox input, object context)
Parameters:inputTextBox

The TextBox control.

contextobject

The context.

Overrides: InputSetting.Validate(TextBox, object)

Validates the specified TextBox control.

C#
public override void Validate(TextBox input)
Parameters:inputTextBox

The TextBox control.

Overrides: InputSetting.Validate(TextBox)