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

[Solved] only first tab strip renders

1 Answer 95 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bill
Top achievements
Rank 1
Bill asked on 15 Aug 2010, 10:36 AM
I have a tabstrip control per row in my model and only the first tabstrip is rendering. The tabstrips for the 2nd and 3rd rows are not rendering. When I click on the tab for those, it opens the PartialView for in a separate web page.

Any ideas what's happening here?

1 Answer, 1 is accepted

Sort by
0
Bill
Top achievements
Rank 1
answered on 15 Aug 2010, 07:00 PM

Fixed the issue. I just had to make sure that the Name of the tabstrip was unique. WIthout a unique Name, only the first tabstrip renders.

 <%
               Html.Telerik().TabStrip()
                                   .Name("TabStrip" + item.id)
                                   .SelectedIndex(1)
                                   .Items(tabs =>
                                   {
                                       tabs.Add()
                                           .Text("monkey")
                                           .ImageUrl("~/Content/Icons/mvc.png")
                                           .LoadContentFrom("Index_Monkey""Monkey"new { id= item.id });
                                       tabs.Add()
                                          .Text("Samples")
                                          .ImageUrl("~/Content/Icons/sl.png")
                                          .LoadContentFrom("Index_Sample""Sample"new { id= item.id });
                                                                        })
                           .Render(); 
        %>

Tags
TabStrip
Asked by
Bill
Top achievements
Rank 1
Answers by
Bill
Top achievements
Rank 1
Share this question
or