PDA

View Full Version : LoadMask Issue



Sundarganesh Ramar
8 Oct 2013, 10:04 PM
Hi,
In my grid i am providing Success alert message and reloading the data store after saving the record successfully.

To Create mask i am masking following code.

gridRelease.getStore().on('beforeload', function() {
releaseMask= Ext.create('Ext.LoadMask',gridRelease.getEl(),{msg:"Please wait..."});
releaseMask.show();
});
gridRelease.getStore().on('load', function() {
releaseMask.hide();
});

For alert Message;
Ext.MessageBox.alert('Status',"Updated Successfully");

I am doing this in a ajax call
Ext.Ajax.request({
url: '../../controller/release/releasecontrl/get_release_data.jsp?req=update',
success: function() {
Ext.MessageBox.alert('Status',"Updated Successfully");
relesegridds.reload();

},

Issue i faced alert and mask both are coming front:

46237
params: { changes: Ext.JSON.encode( data ) ,companyId:companyId}
});

If anyone know how to control the issue please give solution.


i am using ExtJS 4.2 and tested in IE9 and IE10


Thanks in Advance

mstein
9 Oct 2013, 1:08 AM
Hi,

maybe you should try in you Ajax call:


Ext.MessageBox.alert('Status','Updated Successfully', function() {
relesegridds.reload();
});

Then the grid will be reloaded when Alertbox is closed.

Regards
Michael