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
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.:
varpageHost = window.parent;
Then you can call functions registered on PageHost to get reference to the label control.
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
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