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始终是选中状态,有没有谁知道怎么解决?