This is a migrated thread and some comments may be shown as answers.

Reload OR Refresh the Child Window popup

1 Answer 215 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 24 Sep 2009, 10:09 AM
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



1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Sep 2009, 12:02 PM
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.
Tags
Window
Asked by
Rahul
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or