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

Specifies a delay between user changes and the actual value update. Applied for the BindValueMode.OnDelayedInput mode only.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public int? InputDelay { get; set; }

#Property Value

Type Description
Nullable<Int32>

A delay in milliseconds.

#Remarks

You can set the editor’s BindValueMode property to OnDelayedInput to delay a value update. The InputDelay property specifies the delay between user changes and when the value updates. The default value is 500 ms.

The following code snippet shows the Spin Edit component that updates its value after a user is idle for 1 second (1,000ms):

Razor
<DxSpinEdit @bind-Value="@Value" 
           BindValueMode="BindValueMode.OnDelayedInput"
           InputDelay="1000" />

@code {
    int Value { get; set; } = 50;
}

Run Demo: Spin Edit - Bind Value On Input Change

See Also