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

Detect ENTER key press

2 Answers 83 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Zamel
Top achievements
Rank 1
Zamel asked on 27 Jan 2014, 07:35 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 30 Jan 2014, 12:46 PM
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 >>
0
Zamel
Top achievements
Rank 1
answered on 04 Feb 2014, 09:47 AM
I worked! Thanks so much for the help! :-)
Tags
GridView
Asked by
Zamel
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Zamel
Top achievements
Rank 1
Share this question
or