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

Bug in RadTabStrip add() function

2 Answers 34 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 11 Jul 2011, 09:51 AM

Every time I think I'm close to getting the tabstrip to work I find another bug! Here's the latest one...

Add a RadTabStrip to the page with the ScrollChildren property set true, and initialise it with enough items to ensure the scrollbar is visible.
Now append a new item to the bar using a client-side "add" function. It ignores the scroll bar setting and starts a new row of tabs instead.

Here's a simple code snippet that demonstrates this

<div style="background-color: #cccccc; width: 500px; height: 50px; border: 1px solid black;">
  <telerik:radtabstrip id="rts2" runat="server" ScrollChildren="true">
    <tabs>
      <telerik:radtab text="First Tab" value="Tab1" />
      <telerik:radtab text="Second Tab" value="Tab2" />
      <telerik:radtab text="Third Tab" value="Tab3" />
      <telerik:radtab text="Fourth Tab" value="Tab4" />
      <telerik:radtab text="Fifth Tab" value="Tab5" />
      <telerik:radtab text="Sixth Tab" value="Tab6" />
    </tabs>
  </telerik:radtabstrip>
</div>
<input type="button" value="Insert Tab" onclick="onInsertTab()" />
 
<script type="text/javascript" language="javascript">
    function onInsertTab() {
        var tabStrip = $find('rts2');
 
        var tab = new Telerik.Web.UI.RadTab();
        tab.set_text("Inserted Tab");
        var tabList = tabStrip.get_tabs();
 
        tabList.add(tab);
    }

2 Answers, 1 is accepted

Sort by
0
Craig Dobson
Top achievements
Rank 1
answered on 13 Jul 2011, 01:00 PM
bump!
0
Dimitar Terziev
Telerik team
answered on 14 Jul 2011, 10:01 AM
Hello Craig,

As we have already discussed in the support ticket you've submitted, this behavior is due to a bug which has already been logged for fixing.

We will do your best to resolve this issue as soon as possible.

Regards,
Dimitar Terziev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
TabStrip
Asked by
John
Top achievements
Rank 1
Answers by
Craig Dobson
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or