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

[Solved] TabStrip Nested in Panel

0 Answers 8 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.
Ronaldo
Top achievements
Rank 1
Ronaldo asked on 21 Nov 2012, 02:31 PM
I'm having trouble getting a TabStrip control nested in a Panel.  Everything displays as it should except that the TabStrip is rendered outside (above) the Panel.  I can't seem to get it in the Panel.  I'm using Razor and v2012.2.607 of the UI Extensions.  Any ideas, maybe I'm doing something wrong?  Below is my code, note that I followed a different posts example of Rendering the TabStrip via a helper method.  I was hoping this would fix it but it is not.

    @(Html.Telerik().PanelBar()
        .ExpandMode(PanelBarExpandMode.Multiple)
        .Name("pnlExamples")
        .HtmlAttributes(new { style = "border: 0px none #ffffff;" })
        .Items(Item =>
        {
            Item.Add()
                .Expanded(true)
                .Text("Examples")
                .Content(
                @<text>
                        @Test()

                </text>);
        })
    )


@helper  Test()
{
    Html.Telerik().TabStrip()
            .Name("tbExamples")
            .BindTo((List<RequestFormatExample>)FormatExamples, (a, b) =>
            {
                a.Text = b.Type.ToString();
                a.Html = b.Description + "test";
            }).Render();
}

 


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