在Ext 的Toolbar中怎样加入一个定义好的Combox
展开全部
试下这样行不
var swjg_store = new Ext.data.JsonStore({
url:'swjg.do?method=execute&swjg='+Ext.get('swjg').dom.value,
root:'results',
fields:['swjg_dm','swjg_mc']
});
var combo = new Ext.form.ComboBox({
hiddenName:'swjg',
[color=red]store: swjg_store,[/color]
valueField:'swjg_dm',
displayField:'swjg_mc',
typeAhead:true,
mode:'remote',
triggerAction:'all',
emptyText:'请选择机构',
selectOnFocus:true,
allowblank:false,
width:200
});
var swjg_store = new Ext.data.JsonStore({
url:'swjg.do?method=execute&swjg='+Ext.get('swjg').dom.value,
root:'results',
fields:['swjg_dm','swjg_mc']
});
var combo = new Ext.form.ComboBox({
hiddenName:'swjg',
[color=red]store: swjg_store,[/color]
valueField:'swjg_dm',
displayField:'swjg_mc',
typeAhead:true,
mode:'remote',
triggerAction:'all',
emptyText:'请选择机构',
selectOnFocus:true,
allowblank:false,
width:200
});
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询