Post Back From Child Rad Window to Parent Window

7 posts, 1 answers
  1. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 13 Feb 2009 Link to this post

    Hello,
    I have one Page suppose default.aspx Where I have give one link,When I click on this link,One Rad Window
    is open,in that Radwindow I have used RadGrid,one of the column of RadGrid is link button,in this Link button click
    I am opening one more RadWindow(Which is child Rad Window),What I want to do is in click of one of it's button(Child radwindow's)  suppose Update button, I want to close this Child Radwindow and Refresh Parent Rad Window,But I don't want that Entire Main Page(default.aspx) will also will refresh.I want that Parent window will still be open , only this Parent window will refresh on close of child window.
     Please give me suiatble solutions.I hope I'll get my reply soon.

    Thanks
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 16 Feb 2009 Link to this post

    Hello Rahul,

    I suggest to check the following demo that shows how to update the grid with RadAjax. If the demo page is displayed in a RadWindow (which I understand is your scenario), the logic stays the same.



    Greetings,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 16 Feb 2009 Link to this post

    Hello,
    I am greatful that you replied.
    But u have not given the demo link which you were reffering,Plz specified that link.
     I hope I'll get my solutions soon.

    Thanks
  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 17 Feb 2009 Link to this post

    I apologize for the omission,  Rahul.
    Here is the link:
    http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid

    Please examine the refreshGrid() function in the code - it shows how to update RadGrid that is ajaxified with RadAjaxManager.



    All the best,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 21 Feb 2009 Link to this post

    Hello,
    I m thank full that you replied,But I think u did not get my question properly.
    Well I will try again.
     See I have one Page suppose default.aspx ,in that Page I have one Link Button in Which Click I m opening one Rad Window(Suppose
    I m  opening radwindoq1.aspx page) ,in that rad window page I have used Grid and one of the column of Grid is linkbutton,
    in that column's link button click I m opening another radwidow(suppose radwindow2.aspx page). My question is that when I
    will click on update button of radwidow2.aspx page then that radwindow should close,also the parent radwindow(radwindow1.aspx)
    will be refresh,but that radwindow1 should be open.(that radwindow1 is opened on default.aspx page).
      Is there any way So that my Radwindow1 will refresh on close of radwindow2.
    I hope i'll get my solution soon.

    Thanks
  7. Answer
    Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 23 Feb 2009 Link to this post

    Hi Rahul,

    I suggest to check the following demo that shows how to build the communication between different RadWindows. For example here is the function that calls a predefined function in the first RadWindow in order to populate the dropdown list  in RadWindow1

    function returnValue() 
        //get the RadComboBox's selected item's text 
        var combo = $find("RadComboBox1"); 
        var selectedCapital = combo.get_text();  
     
        //Get a reference to the parent page (Default.aspx)        
        var oWnd = GetRadWindow();        
     
        //get a reference to the second RadWindow        
        var dialog1 = oWnd.get_windowManager().getWindowByName("RadWindow1");        
     
        // Get a reference to the first RadWindow's content 
        var contentWin = dialog1.get_contentFrame().contentWindow 
         
        //Call the predefined function in Dialog1 
        contentWin.populateCityName(selectedCapital);  
     
        //Close the second RadWindow 
        oWnd.close(); 
     

    As you can see, the idea is to get a reference to the first RadWindow and then to call a function inside it that would do what you want (in your case to reload the content page).

    If you still experience problems with this scenario, please open a support ticket and send me a full project that can be run locally and that reproduce these problems. This way I can work directly with your code and provide you with the needed solution.


    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  8. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 24 Feb 2009 Link to this post

    Hello,
        I m thankful that you replied.Your sent code is useful and it worked,

    thanks a lot.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017