How can i get modal ID with two showing

2 posts, 0 answers
  1. randall
    randall avatar
    40 posts
    Member since:
    Apr 2009

    Posted 21 Nov 2014 Link to this post


    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.


  2. Marin Bratanov
    Marin Bratanov avatar
    3558 posts

    Posted 24 Nov 2014 Link to this post


    I advise that you examine this article on opening one RadWindow from the other: 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.


    Marin Bratanov

    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top