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

Handle the return key in RadGrid edit/insert mode

1 Answer 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael Gois
Top achievements
Rank 1
Michael Gois asked on 06 May 2009, 12:00 PM
I would like to be able to handle the Enter key when my RadGrid is in Edit/Insert mode.
I am using a FormTemplate for the edit/insert, which contains a LinkButton which is used to submit the action. I have tried adding a
<form defaultbutton="btnSubmit"> to the edit form but this doesnt work, in fact pressing Enter while in Edit mode opens up a new row for inserting a record.
Anyone got a suggestion please?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 May 2009, 01:54 PM
Hi Michael,

Please refer to the link below which discuses a similar scenario:

Defaultbutton in EditMode

The solutions suggest either setting the defaultbutton of a panel or capturing the keydown event  to perform the update operation.


Thanks,
Princy
Tags
Grid
Asked by
Michael Gois
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or