View Full Version : How to know if a store is loaded?
Elfayer
30 Aug 2012, 5:54 AM
Hi,
Is there a way to wait for a store and then continue the code?
Farish
30 Aug 2012, 6:01 AM
you can listen for the load event of the store and then do some actions:
store.on('load', function() {
// do something after store has loaded
});
tvanzoelen
30 Aug 2012, 6:02 AM
The parameters you define in the loadConfig are passed to the operation object
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.Operation
There is a property synchronous there. So you could try to pass that param as true into the load function of the store.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.