Back to Devexpress

DxSpinEdit<T>.Value Property

blazor-devexpress-dot-blazor-dot-dxspinedit-1-ae0659ea.md

latest1.9 KB
Original Source

DxSpinEdit<T>.Value Property

Specifies the Spin Edit value.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public T Value { get; set; }

Property Value

TypeDescription
T

The editor value.

|

Remarks

Use the Value property to specify an editor’s value or to bind the value to a data source object.

razor
<DxSpinEdit Value="15"></DxSpinEdit>

<DxSpinEdit @bind-Value="@DecimalValue"></DxSpinEdit>

@code {
    Decimal DecimalValue { get; set; } = 15;
}

To respond to the value change, handle the ValueChanged event.

The Spin Edit supports the following data types:

Use the MinValue and MaxValue properties to limit the editor’s minimum and maximum values.

Note

  • The Spin Edit does not allow users to set a value that is less or more than the MinValue and MaxValue.
  • If you set the Value property to a value outside the range, the Spin Edit changes its value to the closest available value and displays it.

See Also

DxSpinEdit<T> Class

DxSpinEdit<T> Members

DevExpress.Blazor Namespace