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

Access parent page control from tab strip content url page

7 Answers 357 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
VIJESH
Top achievements
Rank 1
VIJESH asked on 01 Aug 2013, 02:16 PM
Hi,

I have one user control which contains radtabstrip. For this I set ContentUrl property of RadPageView to one of the aspx page. This user control I placed in another aspx page. Now I want to access control & client side method of parent page(aspx) from my child page(RadPageView contenturl page). It is urgent. 

Thanks 
Vijesh

7 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 02 Aug 2013, 10:58 AM
Hello VIJESH,

Since the RadPageView is loaded in an iFrame, when its ContentUrl property is used, I would suggest you to implement the following logic : You could expose the needed control with a javascript method and access it from the child page, using window.parent.MethodName(). I have prepared a sample for you, implementing the above suggestion. Please find it attached and let me know if the problem still persist.

Hope this would help.

Regards,
Nencho
Telerik
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 the blog feed now.
0
VIJESH
Top achievements
Rank 1
answered on 02 Aug 2013, 03:55 PM
Thank you so much, it is working fine for me.
0
David
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 14 May 2018, 06:37 PM
Is there a way to get Parent control from code behind? Me.Project does not work
0
Attila Antal
Telerik team
answered on 17 May 2018, 07:27 AM
Hi David,

Please take a look at the following article where they address the same question: Best way to access controls on parent page from a child page popup?

Kind regards,
Attila Antal
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
David
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 17 May 2018, 01:00 PM

Atilla,

  That article does not address the question. I am familiar how to access Parent from javascript. Question is how to access from code behind. Also, not a popup which is common scenario, but ContentUrl tab which is unique to Telerik.

 

0
Attila Antal
Telerik team
answered on 17 May 2018, 01:54 PM
Hi David,

The answer from the article meant to be for the server-side question you had and it contains couple of options that you can use to pass data between one WebForm to another.

Kind regards,
Attila Antal
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
David
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 17 May 2018, 01:57 PM

I understand. I was hoping there is some special Telerik way to access parent from tab which would be different that standard.

Thank you

Tags
TabStrip
Asked by
VIJESH
Top achievements
Rank 1
Answers by
Nencho
Telerik team
VIJESH
Top achievements
Rank 1
David
Top achievements
Rank 1
Iron
Iron
Veteran
Attila Antal
Telerik team
Share this question
or