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 - Switch Between Views

By default, an end user can switch between views by swiping. Assign false to the swipeEnabled option to disable this feature.

jQuery
JavaScript
$(function() {
    $("#multiViewContainer").dxMultiView({
        dataSource: multiViewItems,
        swipeEnabled: false
    });
});
Angular
HTML
TypeScript
<dx-multi-view
    [dataSource]="multiViewItems"
    [swipeEnabled]="false">
</dx-multi-view>
import { DxMultiViewModule } from "devextreme-angular";
// ...
export class AppComponent {
    multiViewItems = [ ... ];
}
@NgModule({
    imports: [
        // ...
        DxMultiViewModule
    ],
    // ...
})

You can switch the views from code by changing the selectedIndex or selectedItem option.

jQuery
JavaScript
$("#multiViewContainer").dxMultiView("option", "selectedIndex", 1);
Angular
HTML
TypeScript
<dx-multi-view
    [dataSource]="multiViewItems"
    [(selectedIndex)]="selectedIndex">
</dx-multi-view>
import { DxMultiViewModule } from "devextreme-angular";
// ...
export class AppComponent {
    multiViewItems = [ ... ];
    selectedIndex: number = 0;
}
@NgModule({
    imports: [
        // ...
        DxMultiViewModule
    ],
    // ...
})

By default, the MultiView widget animates switching between views. You can disable animation by setting the animationEnabled option to false.

jQuery
JavaScript
$(function() {
    $("#multiViewContainer").dxMultiView({
        dataSource: multiViewItems,
        animationEnabled: false
    });
});
Angular
HTML
TypeScript
<dx-multi-view
    [dataSource]="multiViewItems"
    [animationEnabled]="false">
</dx-multi-view>
import { DxMultiViewModule } from "devextreme-angular";
// ...
export class AppComponent {
    multiViewItems = [ ... ];
}
@NgModule({
    imports: [
        // ...
        DxMultiViewModule
    ],
    // ...
})
See Also