Reload OR Refresh the Child Window popup

2 posts, 0 answers
  1. Rahul
    Rahul avatar
    142 posts
    Member since:
    May 2009

    Posted 24 Sep 2009 Link to this post

    I want to reftesh the child windos from parent how refresh the child windows from parent.

    the child windows contain the Radgrid . want to refresh the grid value
    how to do this
    my code is
    for open child windows
    function OpenResults() {
                    GetRadWindow().BrowserWindow.OpenPopUp(null);
                    GetRadWindow().close();

    }

      function GetRadWindow() {
                    var oWindow = null;
                    if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
                    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)

                    return oWindow;
                } 

    and the child windows contains the

    <telerik:RadGrid ID="dgResult" runat="server" AllowPaging="True" GridLines="None"
                        HeaderStyle-Font-Bold="true" PageSize="15" Height="190px" Skin="Black" ShowFooter="false"
                        ShowGroupPanel="false">
                        <ClientSettings>
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="300px" />
                            <Resizing AllowColumnResize="false" AllowRowResize="false" ResizeGridOnColumnResize="false"
                                ClipCellContentOnResize="true" />
                        </ClientSettings>
                        <AlternatingItemStyle Font-Bold="True" />
                        <MasterTableView AutoGenerateColumns="False" ItemStyle-Font-Bold="true" AllowAutomaticDeletes="true"
                             DataKeyNames="ProjectID">
                            <%--<ItemStyle Font-Bold="True" ForeColor="White" HorizontalAlign="Center" VerticalAlign ="Middle"  />--%>
                            <Columns>
                                <telerik:GridTemplateColumn HeaderText="Created Projects" UniqueName="TemplateCol">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle " Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="projectID" runat="server" Text='<%#Eval("ProjectID") %>' OnClientClick="Redirectwin(this.innerHTML);"
                                         Visible='<%#Eval("Visible") %>'></asp:LinkButton>
                                          <%--<asp:Label ID="lblError" runat="server" Text="'<%#Eval("ProjectID") %>'" Visible='<%#Eval("Error") %>' ForeColor="red"> </asp:Label>--%>
                                           <asp:Label  ID="lblError" runat="server" Text='<%#Eval("ProjectID") %>' Visible='<%#Eval("Error") %>' ForeColor="red"> </asp:Label>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                               
                                <telerik:GridTemplateColumn HeaderText="Proposals Used" UniqueName="TemplateCol">
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle " Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemTemplate>
                                        <asp:Label  ID="ProposalID" runat="server" Text='<%#Eval("ProposalID") %>' Visible='<%#Eval("Visible") %>'> </asp:Label>
                                        <asp:Label  ID="lblError1" runat="server" Text='<%#Eval("ProposalID") %>' Visible='<%#Eval("Error") %>' ForeColor="red"> </asp:Label>
                                       
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>


    want to fresh the child when i added the value from parent

    how do this
    Its urgent



  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Sep 2009 Link to this post

    Hi Rahul,

    You could call a clientside function written in child window from the parent. and in the function invoke an ajaxRequest in order to rebind the grid to show latest update.

    Refer the following documentation that shows how to call functions in windows.
    Calling Functions in Windows

    -Shinu.
Back to Top