I've tried doing this many different ways with no success.
I just want to open a RadWindow from code behind (the initiating action is from a RadDock command).
Here is the aspx:
In the RadWindow I want to display a web page (SelectProperties.aspx) which as three parameters in the query string.
Here's one attempt:
When I use this approach I get the following error: Microsoft JScript runtime error: Unable to get value of the property 'parentNode': object is null or undefined. In researching this error I got now help in trying to figure out why I got this error. So I tried another approach and got the same error:
Any help is greatly appreciated.
I just want to open a RadWindow from code behind (the initiating action is from a RadDock command).
Here is the aspx:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server" > <AjaxSettings > <telerik:AjaxSetting AjaxControlID="RadDockLayout1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadDockZone1" LoadingPanelID="RadDRadAjaxLoadingPanel1ockZone1" /> <telerik:AjaxUpdatedControl ControlID="rwinProperties" LoadingPanelID="RadDRadAjaxLoadingPanel1ockZone1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="rwinProperties"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadDockZone1" LoadingPanelID="RadDRadAjaxLoadingPanel1ockZone1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManagerProxy><telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" Skin="Black" /> <telerik:RadDockLayout ID="RadDockLayout1" runat="server" Skin="Default" OnSaveDockLayout="RadDockLayout1_SaveDockLayout" OnLoadDockLayout="RadDockLayout1_LoadDockLayout" StoreLayoutInViewState="True"> <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="1400px" Width="1100px" Skin="Black" Orientation="Horizontal"> </telerik:RadDockZone> </telerik:RadDockLayout> <asp:Label id="lbCurrentProperty" runat="server" visible="false" /> <telerik:RadWindowManager ID="RadWindowManager1" runat="server"> <Windows> <telerik:RadWindow ID="rwinProperties" runat="server" Title="Select Properties" Height="550px" Width="450px" Left="150px" ReloadOnShow="false" VisibleOnPageLoad="false" ShowContentDuringLoad="false" CssClass="RadWindow" Modal="true"> </telerik:RadWindow> </Windows> </telerik:RadWindowManager>In the RadWindow I want to display a web page (SelectProperties.aspx) which as three parameters in the query string.
Here's one attempt:
Dim URL As String = "SelectProperties.aspx?SectionID=" + SectionID + "&SectionCount=" + SectionCount + "&SectionName=" + SectionNameDim script As String = "function f(){radopen(""" + URL + """,""rwinProperties"").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", Script, True)When I use this approach I get the following error: Microsoft JScript runtime error: Unable to get value of the property 'parentNode': object is null or undefined. In researching this error I got now help in trying to figure out why I got this error. So I tried another approach and got the same error:
Sub DisplayProperties(ByVal SectionID As String, SectionCount As String, ByVal SectionName As String) Dim script As String = "Sys.Application.add_load(ShowSelectProperties(""" & SectionID & """,""" & SectionCount & """,""" & SectionName & """));" ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", Script, True)End Subfunction ShowSelectProperties(SectionID, SectionCount, SectionName) { radopen("SelectProperties.aspx?SectionID=" + SectionID + "&SectionCount=" + SectionCount + "&SectionName=" + SectionName, "rwinProperties");}Any help is greatly appreciated.