This is a migrated thread and some comments may be shown as answers.

How can i get modal ID with two showing

1 Answer 41 Views
Window
This is a migrated thread and some comments may be shown as answers.
randall
Top achievements
Rank 1
randall asked on 21 Nov 2014, 07:27 PM
Hi,

in my application i have a button that displays a modal popup. in that Modal i have a button that displays another modal popup.
the issue is the second popup shows behind the first one. I have read where people are suggesting using setActive to bring the second modal forward (ontop)
however when i try and get do this using the following code.

                      window.parent.purchaseLicense(licenseTypeId, ownerId, licenseIdToUpgrade, onLicensePurchased);
                      oWindow = window.frameElement.radWindow;
                      setTimeout(function () { oWindow.setActive(true); }, 0);
                   
Owindow is coming back with the first Modal.

How can i get the second modal and show that ontop?
As you can see the second modal is coming  from the parent because i don't want it to be inside the other.


thoughts?




1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 24 Nov 2014, 10:56 AM

Hello,

I advise that you examine this article on opening one RadWindow from the other: http://www.telerik.com/help/aspnet-ajax/window-programming-opening-from-within-dialog.html. The key point is opening the second one with a timeout. If you need to use setActive(true), you must use it on the proper object, The current code calls the setActive() method of the first dialog, so the behaviour you get is expected.


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Window
Asked by
randall
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or