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

Control Child page inside the radpane from main page

3 Answers 130 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
WebDeveloper
Top achievements
Rank 1
WebDeveloper asked on 16 Sep 2010, 03:25 PM

I have a webpage that has a label, radsplitter and radpane, lets call it PageHost. In the radpane I load a page by changing the ContentURL property, lets call this page PageChild.

If from PageChild inside the radpane, I want to get handle to the label on PageHost, how do I do that?

3 Answers, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 20 Sep 2010, 11:56 AM
Hi,

You can get reference to the PageHost from within the PageChild through window object, e.g.:
var pageHost = window.parent;

Then you can call functions registered on PageHost to get reference to the label control.

More detailed information on the subject is available in the following KB article:
Referencing content page in a splitter pane from the parent page and vice versa

Regards,
Dobromir
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
0
WebDeveloper
Top achievements
Rank 1
answered on 21 Sep 2010, 01:35 PM
This seems to work on client side. How do I get it to work on the serve side. i.e. what would be the equivalent of window.parent on the server side?
0
Dobromir
Telerik team
answered on 23 Sep 2010, 03:31 PM
Hi,

In short, no, you cannot access the parent's page object on the server. This is not a restriction of RadSplitter but a general ASP.NET restriction. When using ContentUrl property to load the content of a RadPane the page is loaded in an <iframe> element.

All the best,
Dobromir
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
Tags
Splitter
Asked by
WebDeveloper
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
WebDeveloper
Top achievements
Rank 1
Share this question
or