I am trying to display a page in a RadWindow however the RadWindow closes by its self after about a second of loading the new window. I was hoping someone could look at my code and see if they notice anything wrong. I am new to Telerik so sorry if something seems strange.
I want the window to pop up when the link button is clicked so I also applied some c# code to the link button.
<telerik:RadScriptBlock runat="server" ID="RadScriptBlock1"> <script type="text/javascript"> function openWindow() { var window = $find('<%= crWindow.ClientID %>'); alert("open"); window.show(); } function onWindowClosed(sender, args) { var ajaxManager = $find('<%= RadAjaxManager.GetCurrent(Page).ClientID %>'); ajaxManager.ajaxRequest('crWindow'); alert("close"); } </script></telerik:RadScriptBlock><telerik:RadWindowManager runat="server" ID="crWindowManager"> <Windows> <telerik:RadWindow runat="server" ID="crWindow" Title="test" Behaviors="Close,Resize,Move,Maximize" OnClientClose="onWindowClosed" VisibleOnPageLoad="False" VisibleStatusbar="False" Modal="true" Width="480px" Height="390px" KeepInScreenBounds="true" ShowContentDuringLoad="true"/> </Windows></telerik:RadWindowManager> <asp:Table ID="tableMasterMCA" runat="server"> <asp:TableRow> <asp:TableCell> <asp:LinkButton ID="lnkCR" runat="server">Test</asp:LinkButton> </asp:TableCell> </asp:TableRow></asp:Table>protected void Page_Load(object sender, EventArgs e) { lnkCR.Attributes.Add("onclick", "return openWindow()"); crWindow.NavigateUrl = "~/Pages/CRForm.aspx"; }