Extjs radio 组 : Can only click on one item

标签 extjs radio-group

我什至不知道如何搜索这个,所以希望这个问题还没有被回答一百次。

基本上,我的表单上有一个单选组,其中包含三个选项:显示已完成的考试、显示未完成的考试或显示所有考试。

{
name:           'ShowComplete',
fieldLabel:     'Show',
allowBlank:     true,
columns:        1,
items:          [
                    {
                        name:           'ShowComplete',
                        boxLabel:       'Completed Exams',
                        inputValue:     '1'
                    }, 
                    {
                        name:           'ShowComplete',
                        boxLabel:       'Incomplete Exams',
                        inputValue:     '0'
                    }, 
                    {
                        name:           'ShowComplete',
                        boxLabel:       'All',
                        inputValue:     '-1'
                    }
                ],
xtype:          'radiogroup'
}

当我加载页面时,我有一个漂亮的控件。

http://dl.dropbox.com/u/298258/extJSRadioGroup.png

但是,我唯一可以选择的就是未完成的考试

我有什么遗漏的吗?我确信这很简单。

谢谢!

最佳答案

我也有类似的问题。 我相信这与您为中间项赋予值“0”有关。

也许,由于 Javascript 的性质,它后来被错误地解释为“假”或类似的内容,并导致单选按钮的行为中断。

如果您将“0”替换为其他内容,它应该可以工作。

关于Extjs radio 组 : Can only click on one item,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5465859/

相关文章:

ExtJS 4 - 打开窗口时使用加载掩码在 IE8 和 IE9 中给出错误

javascript - EXTJS + 保存网格后使用数据库 ID 更新商店

javascript - 是否可以在 Viewport 的项目属性中使用循环?

android - RadioGroup 没有在 ListView 中保持正确的状态

c# - 获取 radioGroup 中选定的 RadioButton 的索引

android - 循环通过 Radiogroup 以对 Radiobutton 标签执行操作

javascript - 从 extjs 4 升级到 extjs 6

reactjs - Material ui单选按钮组在选择时不改变

angular - 使用 angular2 在 mat-radio-group 中设置默认选择的 mat-radio-button

forms - Sencha Touch/Ext : How to disable a Form inside a Tab Panel (tabpanel) without disabling the Tab