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
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.