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

RadGrid OnKeyPress event

1 Answer 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 11 Jun 2012, 03:17 PM
The OnKeyPress event will fire on a RadGrid but NOT when you are in Edit Mode using EditMode="EditForms". 

How do I capture KeyPress event in a RadGrid while in Edit Mode?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 12 Jun 2012, 02:58 PM
Hello Robert,

This is the expected behavior since opening an item in edit form causes the grid to loose its focus and you will need to click the grid itself to retain its focused state. In order to enable the grid to preserve its focus on edit form opening, please try to add the following property to your grid's declaration:
<ClientSettings AllowKeyboardNavigation="true">

That should do the trick. Please give it a try and let me know about the result.

Unrelated to the topic, please try to avoid opening double repetitive forum posts.

Kind regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or