Back to Devexpress

DxSpinEdit<T>.MaxValue Property

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

latest1.6 KB
Original Source

DxSpinEdit<T>.MaxValue Property

Specifies the Spin Edit’s maximum value.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDescription
T

The maximum editor value. The value type should be equal to the type of the Value property.

|

Remarks

To specify the Spin Edit’s minimum value, use the MinValue property.

The following code snippet customizes the <DxSpinEdit> so it accepts the specified range of values (from 0 to 1).

razor
<DxSpinEdit @bind-Value="DecimalValue"
            MinValue="0M"
            MaxValue="1M" />

@code {
    Decimal DecimalValue { get; set; } = 0.5M;
}

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.

Run Demo: Spin Edit - Custom Increment

See Also

DxSpinEdit<T> Class

DxSpinEdit<T> Members

DevExpress.Blazor Namespace