Right arrow key when on last *visible* column causes issues

6 posts, 0 answers
  1. Steve
    Steve avatar
    97 posts
    Member since:
    May 2014

    Posted 15 Feb 2019 Link to this post

    If I have a cell in the last visible column selected, but there are hidden column (IsVisible=False) columns after it, pressing the right arrow key confuses things.Basically, it will jump to the next control in the window, which in my case is a tab control containing the grid. So what happens is the user pressing the arrow repeatedly to get to the end, and then when it hits the end it jumps up into the tab control which starts switching which tab they are on.
  2. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    541 posts

    Posted 20 Feb 2019 Link to this post

    Hello Steve,

    I managed to reproduce the described behavior on my end and I am currently investigating it, however I will need some more time in order to do so. I will write back to you with my findings before the end of the week.

    Thank you in advance for your patience.

    Regards,
    Vladimir Stoyanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    541 posts

    Posted 22 Feb 2019 Link to this post

    Hello Steve,

    Thank you for your patience.

    I investigated the scenario and in order to avoid the described behavior, you can handle the PreviewKeyDown event of the RadGridView. You can introduce some logic that checks whether the CurrentColumn is the last visible one. If so, you can mark the event as handled.

    I am attaching a sample project demonstrating the above suggestion for your reference. Please, check it out and let me know if such an approach will be suitable for your scenario. 

    I am looking forward to your reply.

    Regards,
    Vladimir Stoyanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  4. Steve
    Steve avatar
    97 posts
    Member since:
    May 2014

    Posted 22 Feb 2019 in reply to Vladimir Stoyanov Link to this post

    I had actually already implemented a IKeyboardCommandProvider to provide my own command sequences for many other broken behaviors in the grid, so I added the arrow keys to it as well. I check for being at the boundary before allowing the regular MoveRight, MoveLeft, etc.commands to be provided.

  5. Steve
    Steve avatar
    97 posts
    Member since:
    May 2014

    Posted 22 Feb 2019 in reply to Vladimir Stoyanov Link to this post

    But also even though I have worked around it, I think this is a pretty significant bug and you should probably fix it.
  6. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    541 posts

    Posted 27 Feb 2019 Link to this post

    Hello Steve,

    Thank you for the update. 

    I do agree that the described behavior is not desired and I have logged it in our feedback portal: GridView: Unexpected keyboard navigation behavior when the last column on the right/left is invisible. You can follow the item in order to get notified for any developments. I have also updated your telerik points for bringing this to our attention. 

    I remain at your disposal for any further assistance you might need.

    Regards,
    Vladimir Stoyanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top