首页 新闻 会员 周边 捐助

ext radio改变选中问题

0
悬赏园豆:10 [已关闭问题]

var formSearch = new Ext.FormPanel({
            frame: true,
            items: [
                       {   xtype: "fieldset",
                           title: "选款方式",
                           autoHeight: true,
                           bodyStyle: "padding-left:20px",
                           layout: "table",
                           defaults: { xtype: "radio", width: 90 },
                           items: [
                                { boxLabel: "类别", id: "rbSearchType1", name: 'rbSearchType', inputValue: "1" },
                                { boxLabel: "系列", id: "rbSearchType2", name: 'rbSearchType', inputValue: "2" },
                                { boxLabel: "价位", id: "rbSearchType3", name: 'rbSearchType', inputValue: "3" },
                                { boxLabel: "主石重", id: "rbSearchType4", name: 'rbSearchType', inputValue: '4' },
                                { boxLabel: "款号", id: "rbSearchType5", name: 'rbSearchType', inputValue: '5' },
                                { boxLabel: "收藏", id: "rbSearchType6", name: 'rbSearchType', inputValue: '6' }
                           ]
                       }
            ]
        });

我用formSearch.findById("rbSearchType2").checked = true;第一次有用

第二次formSearch.findById("rbSearchType1").checked = true;就没用了

rbSearchType2始终是选中状态,有没有谁知道怎么解决?

 

问题补充: 怎么没人回答?
TuTu_WWT的主页 TuTu_WWT | 初学一级 | 园豆:170
提问于:2009-06-18 13:04
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册