Back to Devexpress

SpinEditNumberType Enum

aspnet-devexpress-dot-web-65dccb96.md

latest2.5 KB
Original Source

SpinEditNumberType Enum

Specifies possible editing modes of the ASPxSpinEdit control.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public enum SpinEditNumberType
vb
Public Enum SpinEditNumberType

Members

NameDescription
Integer

Float value input is disabled and float values displayed within the editor are automatically rounded after they has been modified.

| | Float |

Float value input is enabled.

|

The following properties accept/return SpinEditNumberType values:

Remarks

The SpinEditNumberType type enumerates the possible values for the ASPxSpinEdit.NumberType (SpinEditProperties.NumberType) property.

Example

Note

For a full example, see the GridView - Customization Dialog demo.

cshtml
@Html.DevExpress().GridView(settings => {
    settings.Name = "GridView";
    settings.SettingsCustomizationDialog.Enabled = true;
    ...
    settings.Columns.Add(c => {
        c.FieldName = "UnitPrice";
        c.SortIndex = 0;
        c.SortOrder = DevExpress.Data.ColumnSortOrder.Ascending;
        c.Width = 120;
        c.EditorProperties().SpinEdit(sp => {
            sp.DisplayFormatString = "c";
            sp.MinValue = 0;
            sp.MaxValue = 60000;
        });
    });
    settings.Columns.Add(c => {
        c.FieldName = "UnitsInStock";
        c.Width = 140;
        c.EditorProperties().SpinEdit(sp => {
            sp.NumberType = SpinEditNumberType.Integer;
            sp.MinValue = 0;
            sp.MaxValue = 10000;
        });
    });

}).Bind(Model).GetHtml()

See Also

Spin Editor

DevExpress.Web Namespace