Detect ENTER key press

3 posts, 1 answers
  1. Zamel
    Zamel avatar
    20 posts
    Member since:
    Aug 2012

    Posted 27 Jan 2014 Link to this post

    My first post has been lost, I don't know why so I'm re-posting:

    I want to detect only if the ENTER key was pressed in a gridview control. I won't change any grid behavior but detect it only since I'm trying to detect if a barcode has been scanned. We have this requirement that it should be able to scan anywhere in the page and we use ENTER as the indicator when a scan has been finished. It's working now on the entire page, however, if the focus is on the gridview, then it only moves to the next row.

    Is there any way I can detect/trap the ENTER key on the gridview? Please help.


    Thanks.
  2. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 30 Jan 2014 Link to this post

    Hello,

    In order to get a notification the user pressed Enter, you could subscribe for the KeyUp event of RadGridView and check if this is the key pressed. You can check our online documentation to better understand my suggestion.

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Zamel
    Zamel avatar
    20 posts
    Member since:
    Aug 2012

    Posted 04 Feb 2014 in reply to Dimitrina Link to this post

    I worked! Thanks so much for the help! :-)
Back to Top