Telerik RadGridView 内的 Tab 键导航
在设置了 GroupDescriptor
的 Telerik RadGridView
中,一旦焦点进入网格,按 Tab 键焦点将不会离开。它只是循环回到网格的开头。
也就是说,网格的上方和下方都有一些控件。当按下 Tab 键时,焦点从顶部开始向下移动。它到达网格并(如预期和期望的那样)开始通过各个单元格进行选项卡。然而,当到达最后一个单元格时,再次按 Tab 键会将焦点移动到第一个单元格。我希望它移动到网格下方的下一个控件,或者按 TabIndex
属性的顺序移动到下一个控件。
仅当设置了 GroupDescriptor
并且多个组中有行时才会发生这种情况。如果没有 GroupDescriptor
或所有行都在同一组中,则焦点将按预期移动。另外值得注意的是,这是一个带有 IsReadOnly="True"
的网格。我尝试了 TabNavigation
属性的不同选项,但没有成功。
我该怎么做才能获得预期的行为?我缺少一些财产吗?我是否必须使用 Telerik 的 KeyboardCommandProvider
实现自定义 Tab 键行为?如果需要,如何实现?
In a Telerik RadGridView
with a GroupDescriptor
set, once the focus enters the grid, the focus won't leave by pressing tab. It simply loops back to the beginning of the grid.
That is, there are some controls above and below the grid. When hitting the tab key, focus starts at the top and moves down. It gets to the grid and (as expected and desired) begins to tab through individual cells. When it gets to the last cell, however, hitting tab again moves focus to the first cell. I would expect it to move to the next control below the grid, or the next control in order of TabIndex
property.
This only happens when a GroupDescriptor
is set and there are rows in multiple groups. If there is no GroupDescriptor
or all rows are in the same group, focus moves on as expected. Also of note, this is a grid with IsReadOnly="True"
. I have tried the different options for the TabNavigation
property with no success.
What can I do to get the expected behavior? Some property I'm missing? Do I have to implement a custom tab key behavior with Telerik's KeyboardCommandProvider
, and if so, how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论