gpt4 book ai didi

extjs 组合不会停止加载 4.07

转载 作者:行者123 更新时间:2023-12-04 09:54:56 25 4
gpt4 key购买 nike

我有 3 个组合框。当您单击第一个框时,第二个框需要更新以显示相关数据。我选择第一个组合,第二个框完美更新。但是,如果我再次尝试相同的步骤,第二个框不会停止加载(见图)

enter image description here

这是我认为的代码

{
xtype: 'combobox',
name: 'Clients',
id: 'clients',
displayField: 'Name',
store: 'Clients',
queryMode: 'local',
mode: 'local',
valueField: 'Id',
fieldLabel: 'Clients'
},{
xtype: 'combobox',
name: 'Projects',
id: 'projects',
displayField: 'Name',
editable: false,
store: 'Projects',
queryMode: 'local',
mode: 'local',
valueField: 'Id',
fieldLabel: 'Projects'
}

从我的 Controller
stores: ['Projects', 'Clients', 'Jobs'],

init: function () {
this.control({
'#clients': {
change: this.onClientSelect
},
'processlist button[action=copy]': {
click: this.onCopyPart
},
'#processColourContainer #processColourGrid': {
edit: this.onPurchaseOrderColourUpdate
}
});
},

onLaunch: function () {
var clients = this.getClientsStore();
clients.load();
},
onClientSelect: function (selModel, selection) {

var projects = this.getProjectsStore();
projects.load({
url: '/Projects/Read/?clientId=' + selection,
scope: this
});
},

最佳答案

已知错误:

http://www.sencha.com/forum/showthread.php?153490-Combo-Box-Store-Loading

添加这个应该可以解决它:

store.on('load', function (store, records, successful, options) {
if (successful && Ext.typeOf(combo.getPicker().loadMask) !== "boolean") {
combo.getPicker().loadMask.hide();
}
});

关于extjs 组合不会停止加载 4.07,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9393880/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com