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>.Increment Property

Specifies the increment value for the Spin Edit.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[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.
Razor
<DxSpinEdit @bind-Value="DecimalValue"
            Increment="0.1M"
            MinValue="0M"
            MaxValue="1M" />

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

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