Skip to main content
A newer version of this page is available. .

BindValueMode Enum

Lists values that specify how to update the editor value when it is bound to a property/field.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum BindValueMode

Members

Name Description
OnLostFocus

The editor value is updated after the editor loses focus.

OnInput

The editor value is updated when the input value changes.

Related API Members

Remarks

You can use the @bind attribute to bind the editor value to a field. When the editor is rendered, its input value comes from the bound field.

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

Text Box BindValueMode OnLostFocus

Set the editor’s BindValueMode property to OnInput to update the actual editor value when the user changes the input value.

<DxTextBox @bind-Text="@TextValue" BindValueMode="BindValueMode.OnInput" />

@code {
    string TextValue { get; set; } = "Test";
}

Text Box BindValueMode OnInput

Run Demo: Text Box - Bind Value On Input Change

Run Demo: Spin Edit - Bind Value On Input Change

See Also