How to Use Waiting Dialogue in SP Modal Dialogue box in SharePoint 2013?

In SharePoint 2013, while making JQuery calls , if you want to show dialogue box with waiting option here is the source code to achieve the same.

(document).ready(function(){
window.parent.eval(“window.waitDialog = SP.UI.ModalDialog.showWaitScreenWithNoClose(‘Processing’,” Please wait until it is processed ”, 95, 440);”);

});

$( window ).load(function() {
if (window.parent.waitDialog != null)
{
window.parent.waitDialog.close();
}
});

Happy SharePointing folks !! Hope it helps you.

Leave a Reply

Your email address will not be published.