![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![ExpandedBlockStart.gif](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
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 );
}
}
})
})