ScrollView

The ScrollView is a widget that enables a user to scroll its content.

Included in: dx.mobile.js, dx.web.js, dx.viz-web.js, dx.all.js
Module: ui/scroll_view

You can create the widget using one of the following approaches.

  • jQuery
    Use the dxScrollView jQuery plug-in.

    HTML
    <div id="scrollView">
        . . .
    </div>
    JavaScript
    $("#scrollView").dxScrollView({
        direction: 'both',
        onPullDown: function() {
            //process pullDown event
        },
        onReachBottom: function() {
            //process reachBottom event
        }
    });
  • Knockout
    Add a div element and apply the dxScrollView binding to this element.

    HTML
    <div data-bind="dxScrollView: {
        direction: 'both',
        onPullDown: function() {
            //process pullDown event
        },
        onReachBottom: function() {
            //process reachBottom event
        }
    }">
        . . .
    </div>
  • AngularJS
    Add a div element and apply the dx-scroll-view directive to this element.

    HTML
    <div dx-scroll-view="{
        direction: 'both',
        onPullDown: function() {
            //process pullDown event
        },
        onReachBottom: function() {
            //process reachBottom event
        }
    }">
        . . .
    </div>

Note that DevExtreme widgets require you to link the jQuery library to your application. If you use the Knockout or AngularJS approach, the Knockout or AngularJS library is also required. For detailed information on linking these libraries to your project, refer to the Installation article.

You can find detailed information on the principles of working with the widget in the dxScrollView section of the Individual Widgets article.

View Demo

Show Example:
AngularJS
Knockout
jQuery

Configuration

An object defining configuration options for the ScrollView widget.

Methods

This section describes the members used to manipulate the widget.

Events

This section describes events fired by this widget.