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

[Solved] My tabstrip does not work

2 Answers 44 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.
Reynier Jardines
Top achievements
Rank 1
Reynier Jardines asked on 31 Jan 2011, 06:56 PM
I have a tabstrip in a userControl that is show in a telerik windows, this windows is show as a result of the edition of one record in a telerik grid, but i cant change the tabs clicking on it, i could make a try working with tabstrip events and some javascript but this stuff is done in the control (i'm sure in telerik example they do nothing to make it work). I have added the <%: Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.Combined(true).Compress(true)) %> to load all javascript needed, i suppose must be something like i must add some script by i have no idea. I have create my project from Telerik Mvc Project addin for VS 2010 so it put all what i need.

Some help could be great.

I will copy here the tabstrip code, maybe is something in the code, but i just copy and paste the same tabstrip from the example.

<%
    Html.Telerik().TabStrip()
        .Name("TabStrip")
        .Items(items =>
        {
            items.Add().Text("Item 1")
                 .Content(() =>
                 {%>
<p>
    Content</p>
<%});
            items.Add().Text("Item 2")
                 .Content(() =>
                 {%>
<p>
    Content</p>
<%});
        })
        .SelectedIndex(0)
        .Render();
%>

2 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 01 Feb 2011, 09:57 AM
Hi Reynier,

When loading components in a partial view you must register their scripts manually. This is a common pitfall and we have prepared a help article to guide you through this process - Using with partial views loaded via Ajax

Once you register the scripts for the TabStrip it should start working.

Best regards,
Tsvetomir Tsonev
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
0
Reynier Jardines
Top achievements
Rank 1
answered on 07 Feb 2011, 08:39 PM
Undoubtedly the attention given to the forum telerik team is amazing, congratulations for that
Tags
TabStrip
Asked by
Reynier Jardines
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Reynier Jardines
Top achievements
Rank 1
Share this question
or