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

Grid enter key selection

1 Answer 386 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ICT
Top achievements
Rank 1
ICT asked on 21 May 2013, 07:42 AM
I have Kendo UI Grid and it's selection mode is set true. I'd like to listen enter presses on grid if user presses enter key from keyboard. How do i get this event?

I managed to get double click to work on selected line but i would like to provide enter selection also. 

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 21 May 2013, 11:56 AM
Hello Janne,


To achieve this, you could attach a handler for the keydown event and check if the pressed key was enter.

E.g.
$('#Grid table:last').on('keydown', function (e) {
    if (e.which == 13) {
       ...
    }
})

 

Regards,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
ICT
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or