I am currently creating and opening a RadWindow in the code behind using the RadWindowManager. The RadWindow opens without issue until I add a RadAjaxPanel. I was wondering how I can still get the RadWindow to open with a RadAjaxPanel. Below is the code I have:
ASP.NET:
C#:
Thanks!
ASP.NET:
<telerik:RadAjaxLoadingPanel ID="LocationsLoadingPanel" runat="server" Transparency="30" Skin="Vista"></telerik:RadAjaxLoadingPanel> <telerik:RadAjaxPanel ID="LocationsPanel" runat="server" LoadingPanelID="LocationsLoadingPanel"> <telerik:RadTreeView ID="LocationsTreeView" runat="server" EnableDragAndDrop="true" MultipleSelect="true" EnableDragAndDropBetweenNodes="true" AllowNodeEditing="true" OnContextMenuItemClick="LocationsTreeView_ContextMenuItemClick" OnClientContextMenuItemClicking="onClientContextMenuItemClicking" OnClientContextMenuShowing="onClientContextMenuShowing" OnNodeEdit="LocationsTreeView_NodeEdit" OnNodeDrop="LocationsTreeView_NodeDrop" OnClientNodeDropping="onNodeDropping" OnClientNodeDragging="onNodeDragging"> <ContextMenus> <telerik:RadTreeViewContextMenu ID="MainContextMenu" runat="server"> <Items> <telerik:RadMenuItem Value="Rename" Text="Rename ..." Enabled="true" ImageUrl="images/icons/edit_48.png" PostBack="false"> </telerik:RadMenuItem> <telerik:RadMenuItem IsSeparator="true"> </telerik:RadMenuItem> <telerik:RadMenuItem Value="addLocation" Text="Add Location" ImageUrl="images/icons/add_16.png"> </telerik:RadMenuItem> <telerik:RadMenuItem Value="editDetails" Text="Edit Details" PostBack="true" /> </Items> <CollapseAnimation Type="none" /> </telerik:RadTreeViewContextMenu> </ContextMenus> </telerik:RadTreeView> </telerik:RadAjaxPanel> <telerik:RadWindowManager ID="locationRadWindow" runat="server" />C#:
RadWindow window1 = new RadWindow();window1.NavigateUrl = "http://www.google.com";window1.VisibleOnPageLoad = true;window1.Width = 500;window1.Height = 300;window1.VisibleOnPageLoad = true;locationRadWindow.Windows.Add(window1);Thanks!