All docs
V19.1
24.1
The page you are viewing does not exist in version 24.1.
23.2
The page you are viewing does not exist in version 23.2.
23.1
The page you are viewing does not exist in version 23.1.
22.2
The page you are viewing does not exist in version 22.2.
22.1
The page you are viewing does not exist in version 22.1.
21.2
The page you are viewing does not exist in version 21.2.
21.1
The page you are viewing does not exist in version 21.1.
20.2
The page you are viewing does not exist in version 20.2.
20.1
The page you are viewing does not exist in version 20.1.
19.2
19.1
18.2
18.1
17.2
A newer version of this page is available. Switch to the current version.

DevExtreme jQuery - Control the Behavior

An end user can switch the views by swiping them or selecting tabs. Note that tab navigation is always enabled, while swiping is active only on touch devices by default. To enable it on all types of devices, assign true to the swipeEnabled option. Otherwise, assign false.

JavaScript
$(function() {
    $("#tabPanelContainer").dxTabPanel({
        items: tabPanelItems,
        swipeEnabled: false
    });
});

You can switch the views progrmmatically using the selectedIndex or selectedItem option.

JavaScript
$(function() {
    $("#tabPanelContainer").dxTabPanel({
        items: tabPanelItems,
        selectedIndex: 1
    });
});

The TabPanel can loop the views, which enables an end user to swipe through the last view to the first and vice versa. Views are looped by default. To disable looping, assign false to the loop option.

JavaScript
$(function() {
    $("#tabPanelContainer").dxTabPanel({
        items: tabPanelItems,
        loop: false
    });
});

To specify whether or not to animate switching between views, use the animationEnabled option.

JavaScript
$(function() {
    $("#tabPanelContainer").dxTabPanel({
        items: tabPanelItems,
        animationEnabled: true
    });
});
See Also