Handle the return key in RadGrid edit/insert mode

2 posts, 0 answers
  1. Michael Gois
    Michael Gois avatar
    17 posts
    Member since:
    Oct 2008

    Posted 06 May 2009 Link to this post

    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?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 06 May 2009 Link to this post

    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top