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

OnKeyPress Cancel Arrow Key Navigation

1 Answer 118 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 1
Dennis asked on 01 Jun 2015, 09:07 PM

I'm attempting to take control of the Arrow Key navigation in my RadGrid, but it does not appear that set_cancel(true) works.  I have tried a number of different things, but it still won't cancel the Arrow Keys.  I would appreciate any assistance (using the latest version of Grid).  The KeyPress event fires, but no keys are cancelled.

 function KeyPress(sender, eventArgs)

                {
                    if (eventArgs.get_keyCode() == 39) {
                        eventArgs.set_cancel(true);
                        eventArgs.get_domEvent().stopPropagation();
                        eventArgs.get_domEvent().preventDefault();

                    }
                }

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 04 Jun 2015, 01:29 PM
Hello Dennis,

I've created a sample RadGrid web site to test the described behavior. Canceling the arrow keys action successfully prevents the active row navigation. Can you run the attached application and let me know about the result?

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Dennis
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or