|
Rank: Advanced Member Groups: Member
Joined: 7/6/2011 Posts: 30
|
Hi I have a question about closing nested modal dialogs.
How do you close the uppermost dialog while keeping the one behind it open?
I should add, I am using them both to update the db so need to submit to the server before closing the top dialog.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
I don't think how to close the dialog has anything to do with whether they are nested or not at all. You close them the same way no matter how many modal dialogs you have.
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 7/6/2011 Posts: 30
|
Sorry, I didn't explain very well. The close button works fine. I am submitting a formview using a linkbutton and this is when I have the problem. I'm thinking the answer is with the updatepanel.
Do you have any ideas?
|
|
Rank: Advanced Member Groups: Member
Joined: 7/6/2011 Posts: 30
|
If I have an updatepanel in the lower dialog I can't get the upper dialog to close at all, either using the client side button click event and eo_GetObject('DialogHeading').show(false); or the server side DialogHeading.InitialState = EO.Web.DialogState.Hidden;.
If I take out the updatepanel both dialogs close when the form is submitted.
How would you suggest I arrange the updatepanels please?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You should always be able to close the dialog with JavaScript. When you use DialogHeading.InitialState to close the dialog, the dialog MUST BE INSIDE the UpdatePanel. Otherwise it has no effect.
If you still have problem, post a test page and we will be happy to take a look. Please make sure your test page runs and only contain code needed to reproduce the problem.
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 7/6/2011 Posts: 30
|
Thanks for your help. I gave up and have done it all in the lower dialog lol.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Good strategy. : )
|
|