tags:

views:

12

answers:

0

Hi,

I have two pages. Details and orderdetails. In Details page i have radwindow with window manager. I am opening orderdetails page using iframe in details page. See code below.

<telerik:RadWindowManager ID="RadWinManager" runat="server" OnClientDragStart="WindowDragStart"
OnClientResize="WindowDragStart" OnClientResizeStart="WindowDragStart" OnClientResizeEnd="WindowDragStart">
<Windows>
    <telerik:RadWindow ID="DetailRadWind" runat="server" ShowContentDuringLoad="false"
        BackColor="Green" Behaviors="Default" Animation="FlyIn" Skin="Forest">
        <contenttemplate>
                        <div>
                            <iframe frameborder="0" style="width: 100%; height: 100%; border-style: none; border-width: 0px"
                                id="ifrmRadWin" runat="server"></iframe>
                        </div>
                    </contenttemplate>
    </telerik:RadWindow>
</Windows></telerik:RadWindowManager>


criptManager.RegisterClientScriptBlock(this.up, this.GetType(), "strSearSiteName", "document.getElementById('ctl00_PagePlaceholder_DetailRadWind_C_ifrmRadWin').src='OrdDet.aspx'", true);
            LinkButton lnkSiteName = (LinkButton)rw.FindControl("lnkSiteName");
            string Title = "Order Details : " + lnkSiteName.Text;
            ScriptManager.RegisterClientScriptBlock(this.up, this.GetType(), "BlkRejection", "OpenSiteWindow('" + Title + "')", true);

function OpenSiteWindow(Title) {
var WinTitle = Title;
var oWnd = GetRadWindowManager().GetWindowByName("DetailRadWind");
oWnd.set_width(810);
oWnd.set_height(580);
oWnd.set_title(WinTitle);
var radwind = window.radopen("", "DetailRadWind");}

once i clikc the button in details page radwindow will open and displays the data in orderdetails page. And i have another radwindow in orderdetails page.(this window is in orderdetails page). once the popup comes up i have reject button in it. and if i click the reject button anthoer window will open. Now the problem is How to open the window that is orderdetails page. i tried to do it on visibleonpageload = true. but its loading on every pageload. How to open this window using javascript.

Here is orderdetails Page

<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="smOrddet" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="upOrdTsk" runat="server">
    <ContentTemplate>
        <div>
            Some HTML Code HERE</div>
        <telerik:RadWindow ID="RadWinReject" runat="server" Height="340px" Width="515px"
            Title="Bulk Task Completion" Behaviors="Default" CustomCSS="CSS/CustomStyle.css"
            ShowContentDuringLoad="false" BackColor="Green" Animation="FlyIn" Skin="Forest">
            <contenttemplate>
                <asp:UpdatePanel ID="uprej" runat="server" OnUnload="Registerpanel5">
                    <ContentTemplate>
                    <div>Some HTML HERE</div>
                      </ContentTemplate>
                </asp:UpdatePanel>
            </contenttemplate>
        </telerik:RadWindow>
    </ContentTemplate>
</asp:UpdatePanel>
</form></body>