13 Sep 2011 8:51 AM #1
Show a loading mask when syncing the store in a grid!?
there is the pretty good Ext.grid.Panel object and it contents an Ext.data.Store object,
The Ext.data.Store object has got the beforeLoad event, a loading mask, the (after)load event and the isLoading() method.
But where are a syncing mask, (after)sync event, and an isSyncing() method?
Why I cannot inject my (request-)parameters in the beforesync-event, like I do it in the beforeload-event?
I want to show a loading mask when I do save my changes in the grid, if I call the me.getStore().sync() method.
Also I want to avoid users re-loading my grid if it is syncing. But I don't have isSyncing() or another method to check it out in the load-button-handler!
13 Sep 2011 12:30 PM #2
Typically the load mask shows.
You can also use mygrid.setLoading(true);
before calling store sync disable toolbar/button and after store sync / load / write enable the toolbar/button.
13 Sep 2011 1:00 PM #3
13 Sep 2011 11:36 PM #4