Gridview 如何从combobox extjs 4获取传递参数的值
我有一个组合框和一个网格。在组合框上选择一个值时,我需要获取该值并将其作为参数传递给我的控制器,以便它可以更新我的网格。请帮忙。这是我商店的代理Gridview 如何从combobox extjs 4获取传递参数的值,gridview,combobox,extjs4,parameter-passing,Gridview,Combobox,Extjs4,Parameter Passing,我有一个组合框和一个网格。在组合框上选择一个值时,我需要获取该值并将其作为参数传递给我的控制器,以便它可以更新我的网格。请帮忙。这是我商店的代理 proxy: { type: 'ajax', scope: this, url: 'myController/getValue', extraParams: { State: Ext.getCmp('mycombo').get
proxy: {
type: 'ajax',
scope: this,
url: 'myController/getValue',
extraParams: {
State: Ext.getCmp('mycombo').getValue() //this is not possible
},
这是我的组合框
items: [{
xtype: 'combobox',
id: 'mycombo',
scope: this,
editable: false,
store: this.store,
fieldLabel: 'Select State',
displayField: 'State',
queryMode: 'remote',
labelWidth: 125,
listeners: {
scope: this,
store.load()
}
valueField: 'State'
}
在组合框中尝试以下操作:
change:function (field, newValue, oldValue, options) {
console.log('combo changed to ' + newValue + ' from ' + oldValue);
gridPanel.store.load({params:{State:this.value}});
}