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

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

5 Answers 25 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 15 Feb 2019, 11:23 PM
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.

5 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 20 Feb 2019, 05:15 PM
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.
0
Vladimir Stoyanov
Telerik team
answered on 22 Feb 2019, 04:19 PM
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.
0
Steve
Top achievements
Rank 1
answered on 22 Feb 2019, 04:39 PM

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.

0
Steve
Top achievements
Rank 1
answered on 22 Feb 2019, 04:39 PM
But also even though I have worked around it, I think this is a pretty significant bug and you should probably fix it.
0
Vladimir Stoyanov
Telerik team
answered on 27 Feb 2019, 11:35 AM
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.
Tags
TreeListView
Asked by
Steve
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Steve
Top achievements
Rank 1
Share this question
or