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

Big picture question about Grid Keyboard Navigation option

2 Answers 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 06 Dec 2012, 03:20 PM
I've just been reading about the RadGrid AllowKeyboardNavigation property and trying it out.

Given the nature of most programs, I think it safe to say that most people navigate with a combination of keys and mouse clicks.

I'm testing a RadGrid in which key navigation is enabled, and which has a standard template popup editing arrangement.  

Given such a set up, I'm a little confused.  If I open a record for editing through the keyboard I can close the popup with the Esc key.

If I open the record with a mouse click on the Edit column link, the Esc key has no effect.

I find this a bit inconsistent.   

What would be the best way to insure the Esc key always closes the popup?

2 Answers, 1 is accepted

Sort by
0
Accepted
Antonio Stoilkov
Telerik team
answered on 11 Dec 2012, 09:30 AM
Hello Boris,

I have assembled a sample project showing the desired functionality implemented. The idea is to call a custom grid command that clears all grid edit indexes. Note that the experienced behavior is expected because RadGrid closes the edit form of the item which have been selected. If you select the item and then open it using the mouse and click Esc the edit form will close.

Kind regards,
Antonio Stoilkov
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.
0
Boris
Top achievements
Rank 1
answered on 11 Dec 2012, 01:48 PM
Looks like it's working.  Thanks!
Tags
Grid
Asked by
Boris
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Boris
Top achievements
Rank 1
Share this question
or