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

How to set the default button in <FormTemplate> for <EditFormSettings>

1 Answer 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Margo Noreen
Top achievements
Rank 1
Veteran
Margo Noreen asked on 30 Sep 2010, 07:57 PM
I have a FormTemplate set up for when the user clicks the edit icon in the radgrid.  How do I set the default button?  The use case is, user clicks the edit button, edits a field, tabs, edits a 2nd field then hits the Enter or Return key. 

asp:Panel controls have a DefaultButton property which work well for this.  Is there some way to do this?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Oct 2010, 05:45 AM
Hello,

You could place Panel control inside EditFormTemplate and set the DefaultButton to UpdateButton, so that it will trigger the UpdateButton's click event when pressing the Enter key.

Go through the forum for more information:
http://www.telerik.com/community/forums/aspnet/grid/defaultbutton-in-editmode.aspx



-Shinu.
Tags
Grid
Asked by
Margo Noreen
Top achievements
Rank 1
Veteran
Answers by
Shinu
Top achievements
Rank 2
Share this question
or