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

Window Disappears

2 Answers 94 Views
Window
This is a migrated thread and some comments may be shown as answers.
Randy Robbins
Top achievements
Rank 1
Randy Robbins asked on 04 Oct 2010, 07:07 PM
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)

http://www.bobbarker.com/DTIF/payment.aspx

the first click here link is a standard javascript window.open 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.

http://www.bobbarker.com/DTIF/Full/Account/Shop/payment.aspx

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 Answers, 1 is accepted

Sort by
0
Jeff Reinhardt
Top achievements
Rank 1
answered on 06 Oct 2010, 09:28 PM
Anyone with ideas here???
0
Georgi Tunev
Telerik team
answered on 07 Oct 2010, 12:26 PM
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.
e.g.
<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.

Regards,
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
Tags
Window
Asked by
Randy Robbins
Top achievements
Rank 1
Answers by
Jeff Reinhardt
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or