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

New RadGrid option for update/insert on Enter

3 Answers 124 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Clayton
Top achievements
Rank 1
Clayton asked on 18 Mar 2011, 11:54 PM
Going through the latest release notes, I see this gem in the RadGrid section:

Added: Option for Update/Insert action on [Enter] key press from edit/insert form editor (when keyboard navigation is enabled)

Mind telling us what the option is? There's already a ridiculous number of parameters for RadGrid/MasterTableView/EditForm/etc, it would literally take me weeks to locate this new option since the RadGrid documentation does not appear to be updated with it..

3 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 21 Mar 2011, 11:16 AM
Hello Clayton,

When keyboard navigation is enabled and the editing is enabled, users can edit rows hitting the [ENTER] key.  In this case if the focus is in control from the edit form you could update the row upon hitting the [ENTER] key again.
To enable this feature you have to set the ClientSettings -> AllowKeyboardNavigation property of the grid to true and  you have to set the KeyboardNavigationSettings -> AllowSubmitOnEnter property to true.

You could find online example which demonstrates the described behavior on the following link:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/keyboardnavigation/defaultcs.aspx

I hope this helps.

All the best,
Radoslav
the Telerik team
0
Clayton
Top achievements
Rank 1
answered on 21 Mar 2011, 04:55 PM
I'm still experiencing this issue, so I'm assuming this new feature does not work on the modal edit forms??
0
Radoslav
Telerik team
answered on 22 Mar 2011, 10:19 AM
Hi Clayton,

The RadGrid supports Update/Insert action on [Enter] key when the MasterTableView.EditMode is set to PopUp. Into the first reply of the mentioned forum post you could find example which demonstrates the described scenario. Also there is an attached video which shows that everything works as expected and you could Update/Insert items by pressing [ENTER] key when focus is on control from the popup edit/insert form.
Additionally we will be appreciated if you can provide a small runnable sample (or modify the example from the forum post) in which the described behavior can be observed. This will allow us to debug it locally and gather more details about the actual cause for the error.

Best wishes,
Radoslav
the Telerik team
Tags
Grid
Asked by
Clayton
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Clayton
Top achievements
Rank 1
Share this question
or