PDA

View Full Version : [CLOSED] event mask



odyssey
May 28, 2013, 11:28 AM
What is wrong with following ?


Ext.getStore('someStore').load({
params: { incidentId: 1236, commentType: 1 },
eventMask: { showMask: true, customTarget: Ext.getCmp('someComp'), msg: 'Loading...' },
callback: function (records, operation, success) {
if (records.length == 0) {
Ext.getCmp('someWindow').show();
}
}
})

How to show mask when store is loading???

Daniil
May 28, 2013, 1:32 PM
Hi @odyssey,

A store's load method doesn't support an eventMask option.

Here is how you can achieve the requirement.

Example

Ext.net.Mask.show({
el: "someComp"
});
store.load({
callback: function () {
Ext.net.Mask.hide();
}
});

zeus
May 28, 2013, 1:46 PM
Hi @odyssey,

A store's load method doesn't support an eventMask option.

Here is how you can achieve the requirement.

Example

Ext.net.Mask.show({
el: "someComp"
});
store.load({
callback: function () {
Ext.net.Mask.hide();
}
});

thanks a lot