NumericTextbox Input event

Hi!

I'd like to update content after each key press in a NumericTextbox. On "normal" TextBox there is an Input event, however I could not find one on NumericTextbox.

How to update value after each number input?

Thanks.


1 Reply

PM Ponmani Murugaiyan Syncfusion Team January 12, 2022 09:44 AM UTC

Hi Kristof, 

Greetings from Syncfusion support. 

In Numeric TextBox component, we didn’t have the Input event as like TextBox component. Instead we suggest you to use the onKeyup event to get triggered on every keypress. 


<SfNumericTextBox TValue="int?" @bind-Value="test" @onkeyup="keyup"></SfNumericTextBox> 
 
@code { 
 
    public int? test { get; set; } 
    private void keyup(KeyboardEventArgs args) 
    { 
         //triggers on each key press 
    } 
} 


Regards, 
Ponmani M 


Loader.
Up arrow icon