This demo illustrates the primary features of the DevExpress Spin Edit - allwoing end-users to edit numeric values with ease. The editor consists of an edit region and one or two pairs of spin buttons which can be used to adjust the numerical value. The editor's value is specified via the Number property.
The MinValue and MaxValue properties can be used to define the editor's minimum and maximum allowed values, limiting end-user input to a specified range. These properties limit the Number property value.
The DisplayFormatString property is used to specify the format pattern used to represent the editor's value within the edit box when the editor is not focused. By using the NullText property, a prompt can be displayed in the editor's edit box. The specified text is displayed if the editor's value is null and the editor is not focused. The prompt text disappears when the editor receives focus.
NumberType determines whether the MVC Spin Edit uses float or integer editing mode. In integer mode, float value input is disabled and float values displayed within the editor are automatically rounded once modified. In float mode, culture specific separators are supported, allowing decimal separators to display unique values.
When an end-user presses a small or large spin button, the Number property value is incremented or decremented by the amount specified via Increment or LargeIncrement properties respectively. The visibility of small and large spin buttons is managed using the SpinButtons.ShowIncrementButtons and SpinButtons.ShowLargeIncrementButtons properties.