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

TabStrip and PageView inside a asp:Repeater

1 Answer 127 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Andre
Top achievements
Rank 1
Andre asked on 04 Jul 2008, 03:36 AM
Hi Guys,

I've got a TabStrip and a PageView inside of a regular <asp:Repeater>.
My TabStrip is whitin the repeater's headerTemplate and my PageView is whitin my repeater's ItemTemplate. For some reason whenever I click on a tab my pageView doesn't get changed. I reckon the problem is because each element is inside a different container (HeaderTemplate and ItemTemplate). Could you guys give me any idea on how to work this out?

Thanks,
Andre.

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 04 Jul 2008, 06:13 AM
Hello Andre ,

Indeed you need some extra code to hook up RadTabStrip with RadMultiPage when both are in different INamingContainer controls (RepeaterItem and RepeaterHeaderItem). To do so you need to get reference to the multipage and tabstrip using the FindControl method of the corresponding repeater item. Then set the MultiPageID property of your tabstrip to the UniqueID property of the multipage. Here is some code:

protected void Repeater1_DataBound(object sender, EventArgs e)
{
    RadTabStrip tabStrip = (RadTabStrip)Repeater1.Items[0].FindControl("RadTabStrip1");
    RadMultiPage multiPage = (RadMultiPage)Repeater1.Items[1].FindControl("RadMultiPage1");  
    tabStrip.MultiPageID = multiPage.UniqueID;
}

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TabStrip
Asked by
Andre
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or