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.v21.2.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
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).
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";
}