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

Post Back From Child Rad Window to Parent Window

6 Answers 375 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rahul Khinvasara
Top achievements
Rank 1
Rahul Khinvasara asked on 13 Feb 2009, 06:53 AM
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

6 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 16 Feb 2009, 03:23 PM
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.
0
Rahul Khinvasara
Top achievements
Rank 1
answered on 17 Feb 2009, 05:18 AM
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
0
Georgi Tunev
Telerik team
answered on 17 Feb 2009, 06:12 AM
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.
0
Rahul Khinvasara
Top achievements
Rank 1
answered on 21 Feb 2009, 01:23 PM
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
0
Accepted
Georgi Tunev
Telerik team
answered on 23 Feb 2009, 02:32 PM
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.
0
Rahul Khinvasara
Top achievements
Rank 1
answered on 24 Feb 2009, 09:38 AM
Hello,
    I m thankful that you replied.Your sent code is useful and it worked,

thanks a lot.
Tags
Window
Asked by
Rahul Khinvasara
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Rahul Khinvasara
Top achievements
Rank 1
Share this question
or