Every value change can be tracked using the ValueChange event. In addition, if a value is entered, the change event will be triggered after the control loses focus. The change event will be triggered by updating the @bind-Value variable in the input event. Please find the code snippet below.
<SfNumericTextBox TValue="double?" OnInput="onInput" @bind-Value="@textboxValue"> <NumericTextBoxEvents TValue="double?" ValueChange="NumberChanged">NumericTextBoxEvents> public void onInput(Microsoft.AspNetCore.Components.ChangeEventArgs e) textboxValue = Convert.ToDouble(e.Value); |
Find the sample to keep track of every value change in the Numeric Textbox here.