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

Awoid line-breaks

2 Answers 113 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Patric Forsgard
Top achievements
Rank 1
Patric Forsgard asked on 06 Jan 2010, 11:30 AM
Hi.

Have RadTabStrip any settings that I can use to awoid line-breaks so I get all tabs in one line (like in scrolling mode but without the scrolling arrows) and a scroller in the window i put the tab in? I use RadTabStrip in a RadPane for a RadSplitter if that will help.

// Patric

2 Answers, 1 is accepted

Sort by
0
Patric Forsgard
Top achievements
Rank 1
answered on 06 Jan 2010, 12:02 PM
I created an javascript-solution for this feature that is using the OnClientLoad function to resize the div where the tabstrip is created in.

    function TabStripLoad(sender, args) {  
            var tabStrip = $get(sender.get_id());  
            var i = tabStrip.offsetWidth;  
            while (tabStrip.offsetHeight > 30) {  // 30 is between one and two tab rows in height. 
                i += 50;  
                tabStrip.style.width = i + 'px';  
            }  
        }  

Is there another solution for this?

// Patric
0
Yana
Telerik team
answered on 08 Jan 2010, 01:15 PM
Hi Patric,

Setting the width of RadTabStrip with javascript is the only way to achieve the needed layout.

Greetings,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TabStrip
Asked by
Patric Forsgard
Top achievements
Rank 1
Answers by
Patric Forsgard
Top achievements
Rank 1
Yana
Telerik team
Share this question
or