Skip to main content

DxSpinEdit<T>.Increment Property

Specifies the increment value for the Spin Edit.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public T Increment { get; set; }

Property Value

Type Description
T

A unit value. The default value is 1.

Remarks

The Increment property specifies the value added to/subtracted from the editor’s value each time a user performs the following actions:

  • Clicks the increment or decrement spin button.
  • Scrolls the mouse wheel while the editor is focused.
  • Press the UP ARROW or DOWN ARROW key while the editor is focused.
<DxSpinEdit @bind-Value="DecimalValue"
            Increment="0.1M"
            MinValue="0M"
            MaxValue="1M" />

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

SpinEdit Increment

The data type of the Value and Increment property values should match. For instance, an error occurs if you specify an integer value and floating-point increment.

Run Demo: Spin Edit - Custom Increment

See Also