DxRibbonEditItemBase<TValue>.ValueChanged Event
Fires after the edit value changes.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v26.1.dll
Declaration
[DefaultValue(null)]
[Parameter]
public EventCallback<TValue> ValueChanged { get; set; }
Parameters
| Type | Description |
|---|---|
| TValue | The new value. |
Remarks
Handle the ValueChanged event to track when the value of a Ribbon Spin Editor or Combo Box changes.
The following code snippet monitors the value of the Spin Editor component:
<DxRibbon>
<DxRibbonTab Text="Home">
<DxRibbonGroup>
<DxRibbonSpinEditItem Value="@NumberOfRows"
ValueChanged="@((int newValue) => OnValueChanged(newValue))"
MinValue="1"
MaxValue="8" />
</DxRibbonGroup>
</DxRibbonTab>
</DxRibbon>
<p>Number of Rows: <b>@CalculatedValue</b></p>
@code {
private int NumberOfRows { get; set; } = 2;
private string CalculatedValue = "Even";
private void OnValueChanged(int value)
{
NumberOfRows = value;
CalculatedValue = value % 2 == 0 ? "Even" : "Odd";
}
}

See Also