Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scrollable Kendo Tabstrip when tabs overflow

Has anyone ever been able to get the Kendo tabstrip to scroll when there is a tab overflow?

I can currently get the tab control to present a scroll bar at the bottom, but this is not the desired behavior because it moves the content as well.

We just want to be able scroll between tabs when they overflow.

Has anyone accomplished this? If so, how did you do it?

like image 257
DJ Burb Avatar asked Dec 20 '25 01:12

DJ Burb


2 Answers

Found the answer here: http://jsfiddle.net/dimodi/6Z62d/

HTML:

<p>Tabs become scrollable</p>

<div id="tabStrip1">
    <ul>
        <li class="k-state-active">tab item 1</li>
        <li>tab item 2</li>
        <li>tab item 3</li>
        <li>tab item 4</li>
        <li>tab item 5</li>
        <li>tab item 2</li>
        <li>tab item 3</li>
        <li>tab item 4</li>
        <li>tab item 5</li>
    </ul>
    <div>content 1</div>
    <div>content 2</div>
    <div>content 3</div>
    <div>content 4</div>
    <div>content 5</div>
</div>

CSS:

#tabStrip1 > .k-tabstrip-items
{
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

This worked for me.

like image 200
DJ Burb Avatar answered Dec 22 '25 15:12

DJ Burb


Check out the documentation on scroll-able tabs:

Kendo UI Scrollable Tabs

like image 29
Jack Fairfield Avatar answered Dec 22 '25 15:12

Jack Fairfield



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!