or
What can I do to address this?

Kinda new to telerik.
I have a page with a windowmanager, radwindow, and a customcontrol on it.
the customcontrol uses javascript to open the control on the parent page like so
function UseRadWindowOnParentPage(DialogURL,RadWindowID, Width, Height, Title, argument) { var oManager = GetRadWindowManager(); var oWnd = oManager.GetWindowByName(RadWindowID); oWnd.Show(); oWnd.SetSize(Width, Height); oWnd.SetUrl(DialogURL); oWnd.SetTitle(Title); oWnd.Center(); oWnd.argument = argument; oWnd.OnClientClose = function () { alert('client close'); }}
oWnd.OnClientClose never fires.
Any idea whats going on?
If i set the OnClientClose property in the radwindow control it works. The radwindow is used several times and not everything is supposed to have a onclientclose event.
I know I could add a radwindow for every popup I need but I got it this far and would prefer to reuse 1 radwindow rather than adding 6 radwindows where the only real difference is the OnClientClose
http://www.telerik.com/help/aspnet/window/radwindowobjectclientside.html so far, most everything I have tried from this link works.
thanks
| <head runat="server"> |
| <title></title> |
| <script type="text/javascript"> |
| function Test() { |
| PageMethods.TestIT(); |
| alert("done"); |
| } |
| </script> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <telerik:RadScriptManager runat="server" EnablePageMethods="True"> |
| </telerik:RadScriptManager> |
| <button onclick="Test(); return false;">tet</button><br /> |
| </div> |
| </form> |
| </body> |
| </html> |
| <head runat="server"> |
| <title></title> |
| <script type="text/javascript"> |
| function Test() { |
| PageMethods.TestIT(); |
| alert("done"); |
| } |
| </script> |
| <asp:ContentPlaceHolder ID="head" runat="server"> |
| </asp:ContentPlaceHolder> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager runat="server" EnablePageMethods="True"> |
| </telerik:RadScriptManager> |
| <div> |
| <button onclick="Test(); return false;">tet</button><br /> |
| <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> |
| </asp:ContentPlaceHolder> |
| </div> |
| </form> |
<asp:Button runat="server" ID="hiddenTargetControlForModalPopup" style="display:none"/>
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtenderAddEditSample" runat="server" TargetControlID="hiddenTargetControlForModalPopup" PopupControlID="PanelSamples" BackgroundCssClass="modalBackground" DropShadow="true" > </ajaxToolkit:ModalPopupExtender> <!-- modal popup --> <asp:Panel ID="PanelSamples" runat="server" Style="display: none" CssClass="modalPopup"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <!-- a bunch of controls and HTML -->
</ContentTemplate> </asp:UpdatePanel></asp:Panel>Is there an easy way to covert this code to a RadWindow? Thanks!