Wednesday, March 21, 2012

Show Wait Screen on sharepoint dialog

To show wait screen, we need to pass null instead of width and height (or not to initialize this parameters, if  using dialog options object): 



function OpenDialog(strPageURL) {
        try {

            var options = {
            url: strPageURL,  // ID of the HTML tag
    // or HTML content to be displayed in modal dialog
               width: null,
                height: null,
                title: "Dialog Title",
                allowMaximize: true,
                showClose: true
            };

            SP.UI.ModalDialog.showModalDialog(options);

            return false;
        }
        catch (err) {
            alert(err.Description);
        }
    }

No comments:

Post a Comment