

new
Ext.form.ComboBox({
id: ' mycmb ' ,
hiddenName: ' hiddenid ' ,
typeAhead: true ,
triggerAction: ' all ' ,
// mode: 'remote',
valueField: ' ID ' ,
displayField: ' Name ' ,
hiddenValue: 5307 ,
value: ' 清华紫光 M87 鼠标 ' ,
store: new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
method: ' GET ' ,
url: ' /list.aspx '
}),
fields: [{ name: ' ID ' }, { name: ' Name ' }],
root: ' data ' /**/ ,
autoLoad: true ,
listeners: {
load: function (store, records, options) {
Ext.getCmp( ' mycmb ' ).setValue( 5307 );
}
}
})
})
id: ' mycmb ' ,
hiddenName: ' hiddenid ' ,
typeAhead: true ,
triggerAction: ' all ' ,
// mode: 'remote',
valueField: ' ID ' ,
displayField: ' Name ' ,
hiddenValue: 5307 ,
value: ' 清华紫光 M87 鼠标 ' ,
store: new Ext.data.JsonStore({
proxy: new Ext.data.HttpProxy({
method: ' GET ' ,
url: ' /list.aspx '
}),
fields: [{ name: ' ID ' }, { name: ' Name ' }],
root: ' data ' /**/ ,
autoLoad: true ,
listeners: {
load: function (store, records, options) {
Ext.getCmp( ' mycmb ' ).setValue( 5307 );
}
}
})
})