How to use SP.UI.ModalDialog.showWaitScreenWithNoClose to display custom loading message. Simplest way is that just write below code where you have to call the loader/model box of waiting
var value = SP.UI.ModalDialog.showWaitScreenWithNoClose(title, message, height, width);
and to close just add below code
value.close(0);
value=null;There are lost of option are also available, which can be seen onhttp://msdn.microsoft.com/en-us/library/office/ff408140%28v=office.14%29.aspx
Thanks!!! It's worked for me.
ReplyDeletevar value = SP.UI.ModalDialog.showWaitScreenWithNoClose('Please wait....', 'Contract is generating', 100, 300);
setTimeout(function() { value.close(0);window.location.reload();},8000);
Hi,
DeleteThanks