Skip to main content

DxSpinEdit<T>.Increment Property

Specifies the value by which the Spin Edit’s value changes when users click the increment and decrement spin buttons.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.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

Use the Increment property to change the Spin Edit’s unit value. This value is added to/subtracted from the Value property value each time a user clicks the increment/decrement spin button.

    <DxSpinEdit @bind-Value="DecimalValue"
                Increment="0.1M"
                MinValue="0M"
                MaxValue="1M"
                CssClass="cw-320" />

@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