Questions tagged [modal-dialog]

In user interface design, a modal dialog is a child window that requires users to interact with it before they can return to operating the parent application

In user interface design, a modal window is a child window that requires users to interact with it before they can return to operating the parent application, thus preventing the workflow on the application main window. Modal windows are often called heavy windows or modal dialogs because the window is often used to display a dialog box.

An example of a modal dialogue in SharePoint: enter image description here

Questions tagged regard development, implementation and maintenance of Modal Dialoges in SharePoint.

Reference: Modal Window

382 questions
7
votes
3 answers

Open a different page within a modal dialog

On button click I am opening a modal popup and containing a custom webpart. The custom webpart inside the modal popup has a button, on click of this I want to open another modal popup but while doing this I want to close the parent modal popup. I…
Ishan
  • 774
  • 5
  • 19
  • 44
7
votes
1 answer

Unable to get property 'showWaitScreenWithNoClose'

var waitingDialog = SP.UI.ModalDialog.showWaitScreenWithNoClose('Your action is in progress...', "Please wait while we generate the tasks for you."); error Unable to get property showWaitScreenWithNoClose of undefined or null reference I keep…
Khalifa Sabt
  • 111
  • 3
  • 13
6
votes
2 answers

SharePoint Modal Help - pass value back to parent when closing

I'm using SharePoint Modals within my implementation, I've used these before and have basic experience with them. I do as much work as possible in C# and use JS where I have too :-) My current stumbling block is: I'm launching a modal to collect…
user1106196
  • 371
  • 2
  • 6
  • 15
6
votes
6 answers

Detect if modal dialog box

Is there a way to detect using sp.js or jquery to detect if the current context is in a modal dialog box? Im not sure I explained that right, so here is a situation: We have a branded system master page due to some front facing blogs and list views…
user5907
4
votes
4 answers

How to create a link for List's NewForm.aspx that opens in Modal Dialog?

I have a custom list, and I want to create a direct link on the home page which points directly to adding a new item aka NewForm.aspx So, I edited the page and add a link i.e. "Click Here" => (http://SharePointSite/Lists/WebEvents/NewForm.aspx) But…
Mary Larson
  • 171
  • 1
  • 6
  • 14
2
votes
1 answer

SP.UI.ModalDialog.commonModalDialogClose Doesn't Close

I'm using a ModalDialog and have a strange issue. On a button click server side in my popup, I've this line: this.Page.ClientScript.RegisterStartupScript(this.GetType(), "PopupScript", "popData = '" + checkedValue +…
bender
  • 287
  • 3
  • 7
  • 14
2
votes
2 answers

How to Auto close ShowModelDialog box using JQuery?

I created a custom Ribbon button to generate a report in excel for my external lists. When I click on the ribbon button, A modal pop up is displayed. I want to auto close the modal popup after my report has been generated in excel. This is what I…
user16023
  • 101
  • 2
  • 10
2
votes
1 answer

Immediately closing a modal dialog from code behind

I am calling a modal dialog. The dialog should perform an action in the code behind, then immediately close and show a notification in the parent window. I am using the following bit of code: SP.UI.ModalDialog.showModalDialog({ …
2
votes
2 answers

Are the pop-ups in 2010 enforced?

I'm not a fan of the popup list add/edit dialogs to add content in 2010, is there an alternative UI, or is this something I have to get used to?
Akashic
  • 53
  • 7
2
votes
2 answers

SP.UI.ModalDialog works only in Edit mode

I have a custom list in SharePoint 2013 with cascading drop downs for City and State fields. Due to the size of the lookup list, it takes a few seconds to fully load. During this time, it shows some of the elements that are supposed to be hidden…
RnR93
  • 77
  • 6
2
votes
0 answers

How to disable background scrolling while modal dialog is open?

On Sharepoint 2010, when a dialog pops up, users are able to scroll in the background. This affects the user experience, particulary on devices. I have researched a lot into solving this, and obviously the answer is in changing the body overflow to…
tigerdi
  • 131
  • 4
1
vote
0 answers

Submit form to page when opened by SP.UI.ModalDialog.showModalDialog

I am trying to open a SharePoint aspx file in the layouts folder in a dialog box. This file is designed to be opened in a dialog box so I dont need '?IsDlg=1' The issue is that the page loads values from POST data. For the examples I will be trying…
user13186
  • 886
  • 1
  • 16
  • 34
1
vote
2 answers

Open SP.UI.ModalDialog within another ModalDialog

Can I open SP.UI.ModalDialog within another ModalDialog? I mean, I can, and opening works fine. What does not work, is closing second dialog. Neither default buttons for maximizing and closing window (in dialog's top bar) do anything, nor custom…
Tschareck
  • 2,155
  • 7
  • 35
  • 52
1
vote
0 answers

SP.UI.ModalDialog close method returns home.aspx

I have 4 webparts on home page. on maximizing any webpart opens a SharePoint modal popup. While closing that modal popup SP.UI.ModalDialog close method returns home.aspx in ajax call. And it takes 20 seconds to return home page. i want to avid this…
amit
  • 11
  • 1
1
vote
2 answers

Close SP.UI.ModalDialog window

Am using SP.UI.ModalDialog.showModalDialog to open popup modal window. A custom anchor for closing using self.close and window.close without luck and no error found in console log. function modalPopHwnd(targetURL, xwidth) { var options = { …
Jonathan.B
  • 85
  • 1
  • 10
1
2 3