tabStrip.append() not wrapping new tab same as others

1 posts, 0 answers
  1. Charles
    Charles avatar
    9 posts
    Member since:
    Mar 2012

    Posted 25 Jul 2012 Link to this post

    I'm adding a new tab dynamically to my kendoTabStrip. This is working fine, but the new tab does not get wrapped in an <a> tag like the tabs which are created from the <li>'s, rather it is wrapped in a <span>. Here is my code:

    <div id="tab-strip">
      <ul>
        <li class="k-state-active" id="tab1">Tab 1</li>
        <li id="tab2">Tab 2</li>
      </ul>   
      <div>
        Content 1
      </div>
      <div>
        Content 2
      </div>
    </div>
     
     
     
    $('#tab-strip').data('kendoTabStrip').append([{
        text: "New Tab",
        content: "my content"
    }]);

    Is this the expected behavior? Is there a way to specify the wrapper for the tab text?
Back to Top