Is it possible to implement SPLongOperation (or equivalent) in SharePoint Hosted apps, to use the SP default "Working on it.." dialog until list operations are completed?

  • This question here has an answer, but I don't think it'll work in an App (last I tried, I couldn't use a modal in a SP-hosted app). You can give it a try though.
    – wjervis
    Sep 18 '14 at 12:00

I found a way to reuse the "working on it" dialog in apps.

The following loads the wait screen when List operations start executing.

  • SP.UI.ModalDialog.showWaitScreenWithNoClose(SP.Res.dialogLoading15);

Once the operations are complete I use

  • SP.UI.ModalDialog.commonModalDialogClose();

Got a reference from this - JavaScript: How to reuse the "Working on it..." pop in


It is not possible to implement SPLongOperation in SharePoint hosted apps and probably there is out of the box feature available for SPLongOperation equivalent feature.

The workaround could be you can use JavaScript/jQuery plugin for this. There are lot available like spin.js.

  • Yes i thought of this approach and built a modal dialog using twitter bootstrap 3, as i'm making use of it already in my application. Just wanted to know if it is possible at all. Thanks
    – Darshan
    Sep 19 '14 at 7:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.