Data Editors - Editor Types Spin Edit

+
-
+
-
-
+
-
+

This demo illustrates the primary features of the DevExpress Spin Edit - allowing 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 Properties.MinValue and Properties.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 Properties.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 Properties.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.

Properties.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 Properties.Increment or Properties.LargeIncrement properties respectively. The visibility of small and large spin buttons is managed using the SpinButtons.ShowIncrementButtons and SpinButtons.ShowLargeIncrementButtons properties.

Version: v2014 vol 1.4
Copyright © 2006-2014 Developer Express Inc
Your Next Great MVC App Starts Here

Get started today and download your 30-day trial of DevExpress MVC Extensions (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress MVC distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress MVC Extensions ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at info@devexpress.com or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.