Back to Devexpress

DxDropDownBox.ValueChanged Event

blazor-devexpress-dot-blazor-dot-dxdropdownbox-38954f57.md

latest1.6 KB
Original Source

DxDropDownBox.ValueChanged Event

Fires after the editor value changed.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public EventCallback<object> ValueChanged { get; set; }

Parameters

TypeDescription
Object

Editor value.

|

Remarks

Handle the ValueChanged event to respond to the Value change. The ValueChanged event is handled automatically when you use two-way data binding for the Value property (@bind-Value).

Note

If you add a DxDropDownBox to an EditForm component and use one-way binding for the Value property, you need to specify the ValueExpression property.

razor
<DxDropDownBox Value="@Value" ValueChanged="@((object newValue) => OnValueChanged(newValue))" ... />

@code {
    object Value { get; set; }

    void OnValueChanged(object newValue) {
      Value = newValue;
      // ...
    }
}

See Also

DxDropDownBox Class

DxDropDownBox Members

DevExpress.Blazor Namespace