Ext.getCmp('comboxID').setRawValue('00001 数学院');
url : '',
reader : new Ext.data.XmlReader({
record : 'codeitem'
}, ComboRecord),
sortInfo : {
field : 'id',
direction : 'ASC'
}
});
deptStore.load({
callback : function(records, options, success) {
if (success) {
Ext.getCmp('comboxID').setValue('00001');
}
} });
fields:['id','name'],
data:[['','-'],['00001,''00001 数学院']]
})
=============================
我用的是最后一种,SimpleStore的方法。