0
我正在使用extjs 3.當我第一次打開智能卡時,所有收音機組都正常顯示。但是當我關閉智能卡並再次打開,那麼所有的廣播組都沒有顯示。嚮導中的單選按鈕
xtype: 'radiogroup',
id: 'industry_select_type',
fieldLabel: 'Select By',
columns: 1,
items: [{
boxLabel: 'None',
name: 'industry_select_type',
inputValue: '1', // do not set this field to 0, otherwise the radiogroup will not work properly.
checked: true,
listeners: {
check: function (cb, checked) {
toggleCheck(Ext.getCmp('indTree').root, false);
}
}
}, {
boxLabel: 'All Industries',
name: 'industry_select_type',
inputValue: '2',
listeners: {
check: function (cb, checked) {
if (checked) {
Ext.getCmp('indTree').hide();
}
}
}
}, {
boxLabel: 'Specific Industries',
name: 'industry_select_type',
inputValue: '3',
listeners: {
check: function (cb, checked) {
if (checked) {
Ext.getCmp('indTree').show();
} else {
Ext.getCmp('indTree').hide();
}
}
}
}]
ExtJs沒有嚮導類。你如何創建和關閉你的「嚮導」?你正在使用'id',所以如果你多次創建你的組件,'DOM'會感到困惑。 – A1rPun 2013-03-07 15:57:07
我同意@ A1rPun - 請在jsfidle上創建示例或在此處顯示完整使用的代碼。 – Andron 2013-03-11 19:54:47