【发布时间】:2012-04-18 12:16:39
【问题描述】:
我在面板上有两个 AddressPanel 类的实例。
Ext.define('AddressPanel', {
extend: 'Ext.tab.Panel',
initComponent: function() {
this.items = [
{
title: 'Stations',
itemId : 'pointStation',
closable: false,
items:[
{
xtype: 'combo',
fieldLabel: 'station',
store: stationStore,
queryMode: 'remote',
displayField: 'name',
valueField: 'id',
editable : false
}
它们都包含与同一个非常基本的商店相关联的组合框
var stationStore = Ext.create('Ext.data.Store', {
fields: ['id', 'name'],
proxy: {
type: 'ajax',
url : '/address/stationname'
}
});
我可以从第一个实例中打开组合并选择一个电台。
然后我可以从第二个实例打开组合并选择另一个站点。
效果很好。
但是当我再次从 AddressPanel 的第一个实例打开组合框时,我得到了无穷无尽的加载。
我该如何解决?
提前谢谢你。
【问题讨论】:
标签: ajax combobox loading extjs store