This is a migrated thread and some comments may be shown as answers.

NumericTextBox prevent default key up down

1 Answer 1074 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Veteran
Nick asked on 17 Nov 2020, 10:18 PM

Hi All

I am trying to disable the default keyboard inputs of up/down in the NumericTextBox. I cannot see any options from the api

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 18 Nov 2020, 12:23 PM

Hello, Nick,

This can be done by subscribing to the onKeyDown event and prevent it if these two buttons are clicked.

This is an example:

https://stackblitz.com/edit/react-weyut7?file=app/main.jsx

We will also add an official onKeyDown props soon, so this can be done more intuitively.

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Nick
Top achievements
Rank 1
Veteran
Answers by
Stefan
Telerik team
Share this question
or