Hi all,
Have a question about multiple RadWindows on one page that I try to open client-side.
These are my windows defined on my page:
| <telerik:RadWindowManager ID="windowManager" runat="server"> |
| <Windows> |
| <telerik:RadWindow Skin="Sitefinity" InitialBehaviors="None" VisibleStatusbar="false" |
| Width="650px" Height="725px" Behaviors="Close" ID="wdKitchenSetup" runat="server" |
| Modal="true" Overlay="false"> |
| </telerik:RadWindow> |
| <telerik:RadWindow Skin="Sitefinity" InitialBehaviors="None" Visible="false" Width="400px" |
| Height="400px" Behaviors="Close" ID="wdWashupSetup" runat="server" Modal="true" Overlay="false"> |
| </telerik:RadWindow> |
| </Windows> |
| </telerik:RadWindowManager> |
These are the js functions I use.
The ShowKitchenSetup is working okay. It shows a popup with the content of the referred url.
The ShowWashupSetup gives an error. (see thread title)
| function ShowWashupSetup(id) { |
| // Define the ajaxManager |
| var ajaxPanel = $find("<%= ajaxPanel.ClientID %>"); |
| // Concat the arguments |
| var arguments = "Washup, " + id; |
| // Execute the ajax request |
| ajaxPanel.ajaxRequest(arguments); |
| // Define the window manager |
| var manager = GetRadWindowManager(); |
| // Define the url with parameters |
| var url = "ConfigWashup.aspx?id=" + id; |
| // Get the window |
| var wnd = manager.getWindowByName("wdWashupSetup"); |
| // Set the url |
| wnd.setUrl(url); |
| // Show the window |
| wnd.show(); |
| } |
| function ShowKitchenSetup(id) { |
| // Define the ajaxManager |
| var ajaxPanel = $find("<%= ajaxPanel.ClientID %>"); |
| // Concat the arguments |
| var arguments = "KitchenSetup, " + id; |
| // Execute the ajax request |
| ajaxPanel.ajaxRequest(arguments); |
| // Define the window manager |
| var manager = GetRadWindowManager(); |
| // Define the url with parameters |
| var url = "ConfigKitchen.aspx?id=" + id; |
| // Get the window |
| var wnd = manager.getWindowByName("wdKitchenSetup"); |
| // Set the url |
| wnd.setUrl(url); |
| // Show the window |
| wnd.show(); |
| } |
Anyone has an idea why this won't work?
Thanks,
Daniel