The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Gucky (30) [Avatar] Offline
#1
Hi Jay,
If you find the time, you may want to add an example on how to use a listener on a tab to show how to reload it on the fly. This is very useful for tab's that contain e.g. grids using the remoteStore. Below a sample:

var gridRequestRemoteStoreLoaded = false // required to avoid reload before load
...
listeners: {
activate: function() {
if ( gridRequestRemoteStoreLoaded == true ) {
Ext.StoreMgr.get( 'gridRequestRemoteStore' ).reload();
}
}
},
...

Ext.StoreMgr.get( 'gridActiveRequestRemoteStore' ).load({ params:{ /* add yours here */ } });
gridRequestRemoteStoreLoaded = true;
....