Window Disappears

3 posts, 0 answers
  1. Randy Robbins
    Randy Robbins avatar
    1 posts
    Member since:
    Mar 2010

    Posted 04 Oct 2010 Link to this post

    I have a problem with the new window disappearing on load.  It seems to only happen with the MasterPage being used.

    Link: (this link uses a page with no masterpage, with a tabstrip, multipageview)

    the first click here link is a standard javascript call.
    the second click here link is a telerik radwindow.

    both work.

    then you go here and it is the SAME page, controls, etc. except it is using a MasterPage.

    the javascript one works, the telerik radwindow opens, but then disappears.

    So now I have altered the code to create the window from the code behind instead of calling the javascript function.  The window is created and visible but some how the menu control created in the MasterPage is still on top of that window while everything else on the page is behind the new window!!!!   SEE IMAGE
  2. Jeff Reinhardt
    Jeff Reinhardt avatar
    56 posts
    Member since:
    Oct 2009

    Posted 06 Oct 2010 Link to this post

    Anyone with ideas here???
  3. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 07 Oct 2010 Link to this post

    Hello Jeff,

    RadWindow disappears because you open it by using JavaScript by clicking on a server control that causes a postback. What happens is that the clientclick event fires, the window opens but then postback occurs which reloads the whole page. To avoid that, you should cancel the postback.
    <a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$CreditCarduserControl$btnCVVHelp2','')" class="ASPLinkButton" id="ctl00_ContentPlaceHolder1_CreditCarduserControl_btnCVVHelp2" onclick="javascript:openradwindow('../../_help/cardcode.htm','radwinCardCode'); return false;">Click Here</a>

    As for the RadWindow going behind RadMenu, this is happening because RadWindow has a lower z-Index than RadMenu. More information on the subject is available here.

    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top