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

Access parent window controls in child window

1 Answer 525 Views
Window
This is a migrated thread and some comments may be shown as answers.
Abhilash
Top achievements
Rank 1
Abhilash asked on 21 Jan 2013, 05:16 AM
Hello All,
I have some controls in rad parent window. I want to access these controls from child window. How can i accomplish this task.
Is there any possible way to send data to child window (like query string concept) when it open.

thank you
abhi

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 22 Jan 2013, 11:00 AM
Hi Abhi,

If you are using the ContentTemplate of the RadWindow then all controls are on the same page and you can access them directly. This is shown in the following demo: http://demos.telerik.com/aspnet-ajax/window/examples/contenttemplatevsnavigateurl/defaultcs.aspx. Both JavaScript and code-behind can be used, see the demo description for more details.

In case you are using a content page the only way to access controls in one frame from the other is by calling a function that is declared in the target frame and will do the required work: http://www.telerik.com/help/aspnet-ajax/window-programming-calling-functions.html.

You can also pass data upon opening of the RadWindow as explained here: http://www.telerik.com/help/aspnet-ajax/window-programming-using-radwindow-as-dialog.html.


All the best,
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.
Tags
Window
Asked by
Abhilash
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or