I searched the forum and couldn't find anything that fixed my problem, so I'm posting it now in hopes of getting an answer. This is my problem: I am using RadWindow as a popup modal login. The window opens without any problems and I can perform the login without any problems. The issue is when the RadWindow closes. I keep getting an error saying that the javascript method is undefined. This is the relevant code:
Now when I change the inside of the function to something like 'window.location.reload' it works without any problems. Also, if I put that line inside another function and call it from a button click it works fine as well, it just won't work in the OnClientClose function. I can't figure out what I'm doing wrong, help please!
<telerik:RadWindow ID="dlgLogin" runat="server" Behaviors="Close" ReloadOnShow="true" OnClientClose="RadWindowOnClientClose" BackColor="Gray" Modal="true" Height="250"></telerik:RadWindow>function RadWindowOnClientClose(radWindow) { document.location.pathname = "/DaytonDefense/Web/Public/Default.aspx"; }Now when I change the inside of the function to something like 'window.location.reload' it works without any problems. Also, if I put that line inside another function and call it from a button click it works fine as well, it just won't work in the OnClientClose function. I can't figure out what I'm doing wrong, help please!