ASP.Net不能选中所有单选按钮中的选项卡 [英] ASP.Net Cannot tab through all radio buttons when selected

查看:72
本文介绍了ASP.Net不能选中所有单选按钮中的选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在网站上实现辅助功能(仅键盘),但是单选按钮列表存在问题.当使用单选按钮列表时,最初没有选择任何一个单选按钮,我可以在每个单个值之间进行制表,并在单击输入"后选择一个.但是,选择一个值后,我只能用Tab键浏览到选择的值,如果要更改选择的值,则会出现问题.

I'm trying to implement accessibility (keyboard only) ability on my site, but I'm having problems with Radio Button lists. When using radiobuttonlists, when initially, none of the radio buttons is selected, I am able to tab through every single value and select one upon hitting "enter". However, after a value is selected, I can only tab to the selected values, which presents a problem if I want to change the selected value.

据我了解,单选按钮在容器控制器级别分组,因此,当它被视为一个组时,一次只能选择一个.

From what I understand, radio buttons are grouped at the container controller level, thus when it is considered a group, only one can be selected at a time.

关于如何解决此问题的任何想法?

Any ideas on how to fix this issue?

推荐答案

我相信您对RadioButtonList是一个控件是正确的(因此制表不起作用).一种替代方法是创建单个单选按钮并使用

I believe you're correct about the RadioButtonList being one control (and therefore tabbing doesn't work). An alternative could be to create individual radio buttons and use the GroupName property to assign them all into one group. This should let you tab between them and still ensure they work in sync with each other.

这篇关于ASP.Net不能选中所有单选按钮中的选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆