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

[Solved] Set the content height of TabStrip Item

2 Answers 110 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.
Paul
Top achievements
Rank 1
Paul asked on 02 Nov 2010, 12:18 PM
Hello,

I have a tab strip and I use

tabstrip.Add().Content(() =>{...}).ContentHtmlAttributes(new {style="height:600px;"})

but this does not replace or add the height to the style when the page is rendered. Instead I get

<div class="t-content t-state-active" id="TabStrip-1" style="display:block">

So my obvious question is, how do I set the height?

Cheers,

Paul

2 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 03 Nov 2010, 08:24 AM
Hello Paul,

Thank you for reporting this. Obviously, it is a bug, and we just fixed it. It will be available with the upcoming Q3 release. Until then, here is how to fix it in the source. Replace the TabStripHtmlBuilder.ItemContentTag implementation with the following:

    var contentTag = ContentTag(item)
        .ToggleClass(UIPrimitives.ActiveState, item.Selected);
    if (item.Selected)
        contentTag.Css("display", "block");
    return contentTag;


Your Telerik points have been updated for the bug report.

All the best,
Alex Gyoshev
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
Nicolas
Top achievements
Rank 1
answered on 20 Feb 2012, 02:16 PM
Hello Alex,

I'm expriencing a similar problem in Q3
when i'm using the Content method, everything is OK :

tabstrip.Add().Text("My Tab").Content(() =>{...}).ContentHtmlAttributes(new { @class = "myCustomCssClass" } )


but the following, using LoadContentFrom doesn't work :

tabstrip.Add().Text("My Tab").LoadContentFrom("MyControllerAction", "MyController").ContentHtmlAttributes(new { @class = "myCustomCssClass" } )

Is there something wrong with my code ?

Sincerly

Nicolas
Tags
TabStrip
Asked by
Paul
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Nicolas
Top achievements
Rank 1
Share this question
or