If you want to open in maximized dialog, just add below JavaScript method in your page. And call this method in document.ready method.
1: function maximizeWindow() {
2: try {
3: var currentDialog = SP.UI.ModalDialog.get_childDialog();
4: if (currentDialog != null) {
5: if (!currentDialog.$S_0) {
6: currentDialog.$z();
7: }
8: }
9: } catch (e) { }
10: }
11: ExecuteOrDelayUntilScriptLoaded(maximizeWindow, 'sp.ui.dialog.js');
If you have any questions you can reach out our SharePoint Consulting team here.
No comments:
Post a Comment