Hi,
I would like to know how to display the below progress message within a Tab. We are displaying and hiding this progress message during Ajax.Request.
Ext.MessageBox.show({
msg: 'Saving data, please wait...',
progressText: 'Saving...',
width:300,
wait:true,
waitConfig: {interval:2000},
icon:'ext-mb-download'
});
Any help is appreciated.
Regards,
SURESH M R
How can I use LoadMask in Ajax Request?
The progress bar needs to be displayed inside the Tab Panel.
This is how the complete code looks.
if(fieldName=="delete")
{
Ext.Msg.confirm('Confirm', 'Are you sure you want to delete record?',
function(btn)
{
if (btn == 'yes')
Ext.Ajax.request({
url: 'deleteSavedSearchList.action',
params: {hrSavedSearchId: srchId},
success: function(response, request){
var result = Ext.decode(response.responseText);
if(result.success=='true'){
saveSearchGridData.remove(record);
Ext.MessageBox.show({
title: 'Information',
msg: result.msg,
buttons: Ext.Msg.OK,
closable:false,
animEl: 'elId',
icon: Ext.MessageBox.INFO
});
}else {
Ext.MessageBox.show({
title: 'Error',
msg: result.msg,
buttons: Ext.Msg.OK,
closable:false,
animEl: 'elId',
icon: Ext.MessageBox.INFO
});
}
}
});
});
}
//After deletion we are hiding the Message and reloading the Grid
you're probably better off doing a loadmask
Challenging Books For A 14 Year Old?
First guitar : acoustic or electric?
|