OnKeyPress Cancel Arrow Key Navigation

2 posts, 0 answers
  1. Dennis
    Dennis avatar
    8 posts
    Member since:
    Oct 2014

    Posted 01 Jun 2015 Link to this post

    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();

                        }
                    }

  2. Eyup
    Admin
    Eyup avatar
    3867 posts

    Posted 04 Jun 2015 Link to this post

    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
Back to Top