<ClientSettings AllowKeyboardNavigation=
"true"
EnablePostBackOnRowClick=
"true"
>
<ClientEvents />
<KeyboardNavigationSettings EnableKeyboardShortcuts=
"true"
/>
<Selecting AllowRowSelect=
"true"
/>
</ClientSettings>
5 Answers, 1 is accepted
0
Hi Nelbin,
You can use the following approach:
JavaScript:
Alternatively, you can fire grid commands using the method demonstrated in the following article:
http://www.telerik.com/help/aspnet-ajax/grid-gridtableview-firecommand.html
Hope this helps. Please give it a try and let me know if it works for you.
Regards,
Eyup
Telerik
You can use the following approach:
<
ClientSettings
AllowKeyboardNavigation
=
"true"
EnablePostBackOnRowClick
=
"true"
>
<
ClientEvents
OnKeyPress
=
"keyPress"
/>
<
Selecting
AllowRowSelect
=
"true"
/>
</
ClientSettings
>
function
keyPress(sender, args) {
if
(args.get_keyCode() == 13) {
args.set_cancel(
true
);
if
(sender._activeRow) {
sender._activeRow.click();
}
}
}
Alternatively, you can fire grid commands using the method demonstrated in the following article:
http://www.telerik.com/help/aspnet-ajax/grid-gridtableview-firecommand.html
Hope this helps. Please give it a try and let me know if it works for you.
Regards,
Eyup
Telerik
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 the blog feed now.
0

Nelbin
Top achievements
Rank 1
answered on 01 Aug 2013, 01:01 AM
Hi Eyup,
The keyboard navigation isn't working on what you gave. But the mouse click is. Also my current code has a Onrowselected function, during a rowselect I get a data in ClientDataKeyNames via javascript. I tried your code with and without my OnRowSelected function still it doesn't move by key nav
The keyboard navigation isn't working on what you gave. But the mouse click is. Also my current code has a Onrowselected function, during a rowselect I get a data in ClientDataKeyNames via javascript. I tried your code with and without my OnRowSelected function still it doesn't move by key nav
0
Hello Nelbin,
I have prepared a sample RadGrid web site to demonstrate that the suggested approach works as expected. Can you please run the attached application and verify that the keyboard navigation works correctly on your side, too?
Regards,
Eyup
Telerik
I have prepared a sample RadGrid web site to demonstrate that the suggested approach works as expected. Can you please run the attached application and verify that the keyboard navigation works correctly on your side, too?
Regards,
Eyup
Telerik
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 the blog feed now.
0

Nelbin
Top achievements
Rank 1
answered on 14 Aug 2013, 08:12 AM
Hi Eyup,
Still no luck with the help you gave me, I am really not sure why isn't my code working
Still no luck with the help you gave me, I am really not sure why isn't my code working
0
Hi Nelbin,
In that case, please provide us the exact steps to reproduce the issue or open a support ticket to send us a sample runnable application demonstrating the erratic behavior. Thus, we will be able to further analyze the problem and provide a proper solution.
Regards,
Eyup
Telerik
In that case, please provide us the exact steps to reproduce the issue or open a support ticket to send us a sample runnable application demonstrating the erratic behavior. Thus, we will be able to further analyze the problem and provide a proper solution.
Regards,
Eyup
Telerik
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 the blog feed now.