PDA

View Full Version : reloading the store after ajax request



Anthony.Hall
17 Feb 2012, 7:50 AM
I have a feature that enables you to copy a record. You click a button "copy record" this makes an ajax request and i wish to reload the store. I am doing the following but my combo box goes into a loading state that never resolves. Am i doing this the wrong way.


var combo = Ext.getCmp('processparts');
var store = combo.getStore();
Ext.Ajax.request({
method: 'POST',
url: '/Part/Copy',
params: { Id: processPartId, Name: partName },
success: function (result, request) {
store.load();
}
});

mitchellsimoens
17 Feb 2012, 8:10 AM
What Ext JS 4 version are you using? Pretty sure there was a load mask issue in 4.0.7 that was fixed in 4.1.0

Anthony.Hall
17 Feb 2012, 8:34 AM
aah, that would explain it. 4.0.7