Kendo.Mvc.UI.NumericTextBox

Kendo UI NumericTextBox component

Properties

Culture

Specifies the culture info used by the widget.

Decimals

Specifies the number precision applied to the widget value and when the NumericTextBox is focused. If not set, the precision defined by the current culture is used. If the user enters a number with a greater precision than is currently configured, the widget value will be rounded. For example, if decimals is 2 and the user inputs 12.346, the value will become 12.35. If the user inputs 12.99, the value will become 13.00.Compare with the format property.

DownArrowText

Specifies the text of the tooltip on the down arrow.

Factor

Specifies the factor by which the value is multiplied. The obtained result is used as edit value. So, if 15 as string is entered in the NumericTextBox and the factor value is set to 100 the visual value will be 1500. On blur the visual value will be divided by 100 thus scaling the widget value to the original proportion.

Format

Specifies the number format used when the widget is not focused. Any valid number format is allowed.Compare with the decimals property.

Max

Specifies the largest value the user can enter.

Min

Specifies the smallest value the user can enter.

Placeholder

The hint displayed by the widget when it is empty. Not set by default.

RestrictDecimals

Specifies whether the decimals length should be restricted during typing. The length of the fraction is defined by the decimals value.

Round

Specifies whether the value should be rounded or truncated. The length of the fraction is defined by the decimals value.

Spinners

Specifies whether the up and down spin buttons should be rendered

Step

Specifies the value used to increment or decrement widget value.

UpArrowText

Specifies the text of the tooltip on the up arrow.

Value

Specifies the value of the NumericTextBox widget.

Enable

Enables or disables the textbox

Methods

SerializeSettings

Serialize current instance to Dictionary