DxSpinEdit<T>.BindValueMode Property

Specifies how to update the editor value when it is bound to a property/field.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll


public BindValueMode BindValueMode { get; set; }

Property Value

Type Default Description


A BindValueMode enumeration value.

Available values:

Name Description

The editor value is updated after the editor loses focus.


The editor value is updated when the input value changes.


Use the @bind attribute to bind the Value property to a field. When the editor is rendered, its input value comes from the bound field.

The Value property is updated after a user changes the input value and removes focus (OnLostFocus mode).

Spin Edit BindValueMode OnLostFocus

Set the BindValueMode property to OnInput to update the Value property when a user changes the input value.

<DxSpinEdit @bind-Value="@Year" BindValueMode="BindValueMode.OnInput" NullText="Type a value..." />

@code {
    int? Year { get; set; } = DateTime.Now.Year;

Spin Edit BindValueMode OnInput

Run Demo: Spin Edit - Bind Value On Input Change

See Also