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

Add New Row to Kendo Grid on TAB key press

1 Answer 234 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sriman
Top achievements
Rank 1
Sriman asked on 26 Jun 2013, 02:22 AM
Hi,

My kendo Grid has a text field and a checkbox in two columns of a row. While cursor is in last column of the last row when i press TAB key i should add a new row to the grid.

I would be very helpful if you can provide a sample code for my requirement.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 27 Jun 2013, 08:12 AM
Hello Sriman,


Could you provide more information about the current Grid implementation, so I could be more helpful i.e. are the columns using templates with inputs and checkboxes or this behavior should happen in edit mode? If that is the case, what edit mode is the Grid using? In general you should bind to the keypress/keydown event, check if the current pressed key is a TAB and call the addRow method of the Grid to add the new row.

 

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