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

Update parent page from controls inside Gridchild RadWindow

2 Answers 73 Views
Window
This is a migrated thread and some comments may be shown as answers.
Prava kafle
Top achievements
Rank 1
Prava kafle asked on 17 Dec 2012, 10:41 PM
Hi,

I have an aspx page (Page1.aspx) with RadwindowManager and one of the window inside RadWindowManager1 displays Page2.aspx.

On Page2.aspx , there is another Child RadwindowManager2, there are some buttons  inside contentemplate of this RadWindowmanager2.
On clicking these buttons inside Radwindow in radwindowManager2, I would like to update Page1.aspx.
How can I implement this logic?

Using "GetCurrentRadWindow().BrowserWindow.ZoomToSelectedAppointment(apptID);" helped me update page1.aspx from Radwindowmanager1, but  this does not work on Radwindow with contentemplate.



    function GetCurrentRadWindow() {
       var oWindow = null;
       if (window.radWindow) oWindow = window.radWindow;
       else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
       return oWindow;
   }



Thanks for help.
Prava

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 19 Dec 2012, 02:04 PM
Hi Prava,

The following demo explains how both RadWindow modes function: http://demos.telerik.com/aspnet-ajax/window/examples/contenttemplatevsnavigateurl/defaultcs.aspx. The essence is that the COntentTemplate is part of the page where the RadWindow is declared. This is Page2.aspx in your case. Since this page is loaded in a RadWIndow itself, using the GetRadWindow() function should return a proper reference. I am also attaching here a simple example on how this works.

You may also find useful the following two articles on accessing the main page from inside a frame hierarchy:
http://www.telerik.com/help/aspnet-ajax/window-application-is-page-in-radwindow.html
http://www.telerik.com/help/aspnet-ajax/window-application-alert-for-entire-page.html

Regards,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Prava kafle
Top achievements
Rank 1
answered on 19 Dec 2012, 05:32 PM
Hi,

Thanks for the sample, it helped me solve my issue.

Thanks,
Prava
Tags
Window
Asked by
Prava kafle
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Prava kafle
Top achievements
Rank 1
Share this question
or