SWATI GUPTA
SWATI GUPTA

Reputation: 43

ExtJS:Load mask for only grid is not happening

I want to mask only my grid component, when the data is getting loaded. But on load mask , the whole window gets masked.Please suggest the necessary changes to achieve this behavior. You can access the code in the below fiddle path, provided.

https://fiddle.sencha.com/#fiddle/fti

Thank You...

Upvotes: 0

Views: 2400

Answers (2)

cstsui
cstsui

Reputation: 144

You can call grid.setLoading(true) or grid.setLoading('Custom Message') if you have a reference to the grid.

Link to Doc

Upvotes: 1

stinger
stinger

Reputation: 4138

Try this:

var gridPanel = new Ext.grid.Panel({
            ...
            viewConfig: {
                loadMask: true
            },
            ...
});

Hope that helps.

Upvotes: 0

Related Questions