Welcome Guest Search | Active Topics | Sign In | Register

Nested dialogs Options
WMP
Posted: Monday, October 17, 2011 12:28:10 PM
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.
eo_support
Posted: Monday, October 17, 2011 12:49:49 PM
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
WMP
Posted: Tuesday, October 18, 2011 4:37:13 AM
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?
WMP
Posted: Tuesday, October 18, 2011 6:34:39 AM
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?
eo_support
Posted: Tuesday, October 18, 2011 7:49:29 AM
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
WMP
Posted: Tuesday, October 18, 2011 11:52:20 AM
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.
eo_support
Posted: Tuesday, October 18, 2011 1:45:34 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Good strategy. : )


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.