ScrollView

A widget used to display scrollable content.

Included in: dx.phonejs.js, dx.webappjs.js, dx.all.js

The dxScrollView widget represents a scrollable field that displays data located inside the HTML element representing the widget.

You can create a 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>
  • Angular
    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 and Globalize libraries to your application. If you use the Knockout or Angular approach, the Knockout or Angular library is also required.

See Also

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 dxScrollView widget.

Methods

This section describes the members used to manipulate the widget.

Events

This section describes events exposed by this widget.