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.dll

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

The following properties accept/return BindValueMode values:

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 = "Test";
    string TextValue { get => textValue; set { textValue = value; InvokeAsync(StateHasChanged); } }
}

Text Box BindValueMode OnInput

See Also