[]
The InputNumber control allows users to enter numbers.
public class InputNumber : FormInputBase, IHtmlString, ITemplate
| Name | Description |
|---|---|
| InputNumber(HtmlHelper, string) | Creates one InputNumber instance. |
| Name | Description |
|---|---|
| Format | Gets or sets the format used to display the number being edited (see Globalize). |
| HandleWheel | Gets or sets a value that determines whether the user can edit the value using the mouse wheel. |
| InputType | Gets or sets the "type" attribute of the HTML input element hosted by the control. |
| IsReadOnly | Gets or sets a value that indicates whether the user can modify the control value using the mouse and keyboard. |
| IsRequired | Gets or sets a value indicating whether the control value must be a number or whether it can be set to null (by deleting the content of the control). |
| Max | Gets or sets the largest number that the user can enter. |
| Min | Gets or sets the smallest number that the user can enter. |
| OnClientInvalidInput | Occurs when invalid input is detected. |
| OnClientTextChanged | Occurs when the value of the Text property changes. |
| OnClientValueChanged | Occurs when the value of the Value property changes. |
| Placeholder | Gets or sets the string shown as a hint when the control is empty. |
| RepeatButtons | Gets or sets a value that determines whether the spinner buttons should act as repeat buttons, firing repeatedly as the button remains pressed. |
| ShowSpinner | Gets or sets a value indicating whether the control displays spinner buttons to increment or decrement the value (the step property must be set to a non-zero value). |
| Step | Gets or sets the amount to add or subtract to the Value property when the user clicks the spinner buttons. |
| Text | Gets or sets the text shown in the control. |
| Value | Gets or sets the current value of the control. |