Back to Devexpress

ASPxSpinEdit.NumberType Property

aspnet-devexpress-dot-web-dot-aspxspinedit-15134724.md

latest1.9 KB
Original Source

ASPxSpinEdit.NumberType Property

Gets or sets a value that specifies whether a spin editor edits float or integer values.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(SpinEditNumberType.Float)]
public SpinEditNumberType NumberType { get; set; }
vb
<DefaultValue(SpinEditNumberType.Float)>
Public Property NumberType As SpinEditNumberType

Property Value

TypeDefaultDescription
SpinEditNumberTypeFloat

A SpinEditNumberType enumeration value.

|

Available values:

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.

|

Remarks

This property is a wrapper of the SpinEditProperties.NumberType property.

Note

If the NumberType property value does not correspond to the real type of value to which the editor is bound (e.g., the NumberType property is set to Integer and the editor is bound to the Double value), the spin editor may work improperly. So, we recommend you correlate the NumberType property value with the real editor value type.

See Also

Spin Editor

ASPxSpinEdit Class

ASPxSpinEdit Members

DevExpress.Web Namespace