Awoid line-breaks

3 posts, 0 answers
  1. Patric Forsgard
    Patric Forsgard avatar
    5 posts
    Member since:
    Oct 2009

    Posted 06 Jan 2010 Link to this post

    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. Patric Forsgard
    Patric Forsgard avatar
    5 posts
    Member since:
    Oct 2009

    Posted 06 Jan 2010 Link to this post

    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
  3. Yana
    Admin
    Yana avatar
    5025 posts

    Posted 08 Jan 2010 Link to this post

    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.
Back to Top