Scroll Support

24 Jan 20185 minutes to read

The tab control provides the scrolling support on tab items to display a larger number of tabs. It is provided with scroll buttons to get rid of the extending page size. The enabled scroll buttons is used to traverse through the elements.

By default, the tab header is rendered without the scroll button. Add the scroll button by setting the EnableTabScroll property to true. The scroll button is displayed when you move the cursor over the tab header.

You can use the following code example to render the tab widget with scroll button.

  1. Add the following code in your view page to create a simple tab with scroll button.
  • CSHTML
  • @*Add the following code example to the corresponding CSHTML page to render Tab with scroll button.*@
    
    <div style="width: 500px">
    
        <ej-tab id="tabSample" enable-tab-scroll="true">
            <e-tab-items>
                <e-tab-item id="pizzatype" text="Pizza Type">
                    <e-content-template>
                        <div>
                            Pizza cooked to perfection tossed with milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.
                        </div>
                    </e-content-template>
                </e-tab-item>
                <e-tab-item id="sandwichtype" text="Sandwich Type">
                    <e-content-template>
                        <div>
                            Sandwich cooked to perfection tossed with bread, milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.
                        </div>
                    </e-content-template>
                </e-tab-item>
                <e-tab-item id="pastatype" text="Pasta Type">
                    <e-content-template>
                        <div>
                            Pasta cooked to perfection tossed with milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.
                        </div>
                    </e-content-template>
                </e-tab-item>
                <e-tab-item id="burgertype" text="Burger Type">
                    <e-content-template>
                        <div>
                            Burger cooked to perfection tossed with milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.
                        </div>
                    </e-content-template>
                </e-tab-item>
                <e-tab-item id="spaghettitype" text="Spaghetti Type">
                    <e-content-template>
                        <div>
                            Spaghetti cooked to perfection tossed with milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.
                        </div>
                    </e-content-template>
                </e-tab-item>
                <e-tab-item id="ramentype" text="Ramen Type">
                    <e-content-template>
                        <div>
                            Ramen cooked to perfection tossed with milk, vegetables, potatoes, poultry, 100% pure mutton, and cheese - and in creating nutritious and tasty meals to maintain good health.
                        </div>
                    </e-content-template>
                </e-tab-item>
            </e-tab-items>
        </ej-tab>
    
    </div>

    The following screenshot illustrates the tab control with scroll button.

    Tab control with scroll support