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

How to find a multipage control inside a multipage control??

1 Answer 68 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Jeff Reinhardt
Top achievements
Rank 1
Jeff Reinhardt asked on 05 Nov 2010, 09:52 PM
I have a page with 4 tabs tied to a multipage, the 4th tab loads a control that has 2 tabs using a multipage.

How do I reference the second multipage control?

RadMultiPage

 

multiPage = (RadMultiPage)Page.Master.FindControl("ContentPlaceHolder1").FindControl("radmultipagePayment");

 


This does not find it.  I tried this as well:

RadMultiPage

 

multiPage = (RadMultiPage)Page.Master.FindControl("ContentPlaceHolder1").FindControl("radmultipageCheckOut").FindControl("radmultipagePayment");

It fails to find the initial multipage so the line fails.

Ideas?

 

1 Answer, 1 is accepted

Sort by
0
Jeff Reinhardt
Top achievements
Rank 1
answered on 08 Nov 2010, 04:30 PM
The answer is actually in order to find the multipage control that is inside another tab/multpage control you have to reference and find the usercontrol that loads the inner tab/multipage.

My top level tab/multipage loads payment.ascx which has the inner tab/multpage on it, therefore, this works:

RadMultiPage

 

multiPage = (RadMultiPage)Page.Master.FindControl("ContentPlaceHolder1").FindControl("paymentusercontrol").FindControl("radmultipagePayment");

 

 


in the PageViewCreated method I name the pageview.ID = the name of the control + "usercontrol" so in this case, paymentusercontrol

I hope this helps someone since apparently I was the first one with the issue since no one ever replied. 

Guess I cannot mark my own post as the answer, but this is it!  Anyone from Telerik that wants to mark this as the answer for this thread feel free.
Tags
TabStrip
Asked by
Jeff Reinhardt
Top achievements
Rank 1
Answers by
Jeff Reinhardt
Top achievements
Rank 1
Share this question
or