Open Parent Windows Reload

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

    Posted 16 Sep 2009 Link to this post

    Hello i hv following application

    One Rad grid (Main Page Parent Page  ) It contains the ADD Cart Button .....When i click on that open the Cart Windows
     

    <telerik:RadWindow ID="RadWndCart" runat="server" Modal="false" VisibleStatusbar="False"
                    Behavior="Move,Minimize"  Skin="Black" Title="Cart" Top="150px" Left="250px" Width="620px"
                     NavigateUrl="ProposalCart.aspx"  Height="483px">
                </telerik:RadWindow>

    The Cart windows contains the Create Button When i click on this Open the one form in same windows using following code, It contains creat project button when i click execute the follwoing script and open the page same child window,

      function OpenResult()
                   {

                       var oWnd = radopen ("CreateProjectResult.aspx","RadWndCart");
                       return false;

                }

    It will open the result windows On that one button i want refresh the Parent (Main Page) .........
    for example
    the Result page grid contains
    ABC
    PQR
    ABCD

    Above are the link button
    when click
    function RefreshParentPage()
                {
               GetRadWindow().BrowserWindow.location.href = GetRadWindow().BrowserWindow.location.href;

                }

    but not open the parent main page it open the second Proposal cart page , i dont want this Reload the main parent page

    when i click on the above ABC opens the ABC Page information.

    How to navigate the on main page from Child -- Child Window to Parent

    ITs Urgent very urgent

  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 18 Sep 2009 Link to this post

    Hi Rahul,

    If I understand your scenario you have the following setup :
    - Main window (browser's window)
         - A RadWindow with name WindowA that is child of the browser's window
              - A RadWindow with name WindowB that is child of the WindowA

    And you need to refresh the browser window from the WindowB.
    If I am correct you can use this script on the content page opened inside the WindowB :

    function refreshBrowserWindow() 
        var browserWindow = GetRadWindow().BroserWindow.GetRadWindow().BrowserWinsdow; 
        browserWindow.location.href = browserWindow.location.href; 

    Please note that the GetRadWindow() function should be declared on every page that is opened inside a RadWindow.

    I hope this helps.

    Sincerely yours,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Ganesh Kumar Sathiyamoorthy
    Ganesh Kumar Sathiyamoorthy avatar
    2 posts
    Member since:
    Jul 2009

    Posted 02 May 2010 Link to this post

    Hi Fiko,

    I have the same problem. In your example how can I reload or refresh Window A on close of Window B.

    Rajesh
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 03 May 2010 Link to this post

    Hello Rajesh,

    I attached a small sample that shows how to do that in Fiko's setup. I hope this helps.


    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top