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

[Solved] RadWindow disappears automaticaly

3 Answers 197 Views
Window
This is a migrated thread and some comments may be shown as answers.
adi
Top achievements
Rank 1
adi asked on 02 Oct 2007, 11:42 AM
Hi,

I have a RadWidow placed in a WebUserControl. By clicking a LinkButton it will be displayed. But only as a "flash". It disappears after a second or two automatically. I've no idea how to get it on page. Do you have ... ?

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 02 Oct 2007, 12:24 PM
Hello adi,

Can you please clarify how exactly you are calling the RadWindow? Also can you please post here your RadWindowManager's declaration along with the code of your user control?

Thank you for your cooperation.




Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
adi
Top achievements
Rank 1
answered on 02 Oct 2007, 12:39 PM
There is a LinkButton on the UserControl. The LinkButton is on my parent aspx- page. The click opens the RadWindow modal and something is displayed in it. This is the aspx code of my UserControl:

<
script language="javascript" type="text/javascript"><!--
function
showDialog()
{radopen(
null, "rWd");}
-->
</script>

<
asp:LinkButton ID="lbtnAction" runat="server" Text="Link" OnClientClick="showDialog()" ></asp:LinkButton>

<
telerik:RadWindowManager ID="rWdMgr" runat="server" ShowContentDuringLoad="false" VisibleStatusbar="false">
<Windows>
<telerik:RadWindow ID="rWd" NavigateUrl="target.aspx" runat="server" Modal="true" Height="100px" Width="350px" Top="30" Left="30" Skin="Vista" VisibleStatusbar="false" ReloadOnShow="true">
</telerik:RadWindow>
</Windows>
</
telerik:RadWindowManager>

The UserControl is declared in an aspx-page in a AJAX UpdatePanel. But if I set VisibleOnPageLoad it will be displayed. I think that this is not the problem.

0
adi
Top achievements
Rank 1
answered on 02 Oct 2007, 08:29 PM
Hi,

I've solved the problem. It was the asp:LinkButton. It has bubbled the click- event. I have break it with: 

OnClientClick="javascript:showDialog();return false;"

Now it is fine ;-)

Tags
Window
Asked by
adi
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
adi
Top achievements
Rank 1
Share this question
or