PDA

View Full Version : Triggering a grids load mask?



anfla
30 Jan 2013, 11:17 PM
Heya, community. I have a little question:

I'm using an AJAX-request which is not triggered by the grid or the grid's store. Is it possible to use a loading mask, by activating it (and deactivating afterwards) with a method or something? I was unable to find something within the documentation.

willigogs
31 Jan 2013, 12:16 AM
You can mask and unmask the grid manually by using Ext.Element's mask and unmask methods:
http://docs.sencha.com/ext-js/3-4/?mobile=/api/Ext.Element#method-mask

So for example:


Ext.getCmp('grid_id').getEl().mask()