Bug in RadTabStrip add() function

3 posts, 0 answers
  1. John
    John avatar
    8 posts
    Member since:
    Jul 2011

    Posted 11 Jul 2011 Link to this post

    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. Craig Dobson
    Craig Dobson avatar
    5 posts
    Member since:
    Feb 2010

    Posted 13 Jul 2011 Link to this post

    bump!
  3. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 14 Jul 2011 Link to this post

    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!

Back to Top