Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

RadWindow does not open again after it closes

$
0
0

Hello,

I have a simple scenario, one RadWindow that opens another url. It works perfectly fine until I close the RadWindow (without refreshing the main page). I have tried to close the window using some JavaScript but I can replicate when I click the X button of the RadWindow. The window closes but the next time I click my lnkClient button the oWnd on the JavaScript function returns null, even though the id is passed correctly to the $find function. As a result the window cannot open again until I postback my page. I have read about DestroyOnClose property that should be false, but I have tried that and didn't work.

  <script type="text/javascript">
       functionOpenWindow()
       {
           varoWnd = $find($("[id$=RadWindow1]").attr("id"));
           oWnd.show();
           returnfalse;
       }
</script>
<asp:LinkButtonID="lnkClient"runat="server"text="Open"OnClientClick="return OpenWindow();"></asp:LinkButton>
 
<telerik:RadWindowID="RadWindow1"runat="server"VisibleOnPageLoad="false"  NavigateUrl="/somepage.aspx"Modal="false"></telerik:RadWindow>

Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>