NumericTextBox prevent default key up down

2 posts, 0 answers
  1. Nick
    Nick avatar
    19 posts
    Member since:
    Oct 2019

    Posted 17 Nov 2020 Link to this post

    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

  2. Stefan
    Admin
    Stefan avatar
    3039 posts

    Posted 18 Nov 2020 Link to this post

    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/.

Back to Top