Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxSpinEdit<T>.MinValue Property

Specifies the Spin Edit’s minimum value.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public T MinValue { get; set; }

#Property Value

Type Description
T

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

#Remarks

To specify the Spin Edit’s maximum value, use the MaxValue 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