PDA

View Full Version : extjs combo won't stop loading - 4.07



Anthony.Hall
22 Feb 2012, 3:30 AM
I have 3 combo box's. When you click the first box the second box needs to update showing the relevant data. I select the first combo the second box updates perfectly. However if i try the same steps again the second box doesn't stop loading ( see image )


32017


Here is the code from my view



{
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'
}
and from my 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
});


},

mitchellsimoens
22 Feb 2012, 5:56 AM
This was a bug that was fixed in 4.1.0

skirtle
22 Feb 2012, 5:20 PM
If you're not in a position to use the 4.1 betas then there are links here to various patches:

http://www.sencha.com/forum/showthread.php?173152