New to Kendo UI for jQuery? Download free 30-day trial

Endless Scrolling

Endless scrolling is an alternative to paging. The functionality is suitable when you display large number of items and use editing, grouping, filtering, sorting, or hierarchy.

For runnable examples, refer to:

Getting Started

To enable endless scrolling, set the scrollable.endless property to true.

For the functionality to work as expected there are two requirements:

  • There needs to be a vertical scrollbar
  • The height of the grid should be constant

The Grid supports endless scrolling both when it is bound to local and remote data:

  • When bound to local data arrays, the Grid serializes all items to the client and while the user scrolls, the component displays new items.
  • When bound to remote data, the Grid serializes only the items for one page. When the user scrolls to the end of the list, the Grid sends an AJAX request to get the items for the next page. When the data is returned, the Grid renders only the new items and appends them to the old ones.

        scrollable: {
            endless: true
        // Other configuration.

Using with Editing

Endless scrolling works with editing in a similar way as it works with regular paging. However, when you use endless scrolling together with editing and an item is opened for editing, that item will remain opened even after a new page is requested.

Using with Grouping

Out of the box, endless scrolling works together with grouping. However, when the two features are used together, the Grid behaves in the following specific way:

  • If the Grid is scrolled to the bottom, the number of the items it will request will be equal to the number of items and the page size.
  • If the last group of items is collapsed, the Grid will still make requests for the items from that group.
  • If a group of items spans across multiple pages, the Grid will make multiple requests.
  • When a particular subset of items is returned, the items will be rendered and hidden because the group is collapsed. The Grid will continue to request the items until a new group is reached or until none of the items are present for to be requested.

If the Grid is bound to remote data, enable serverGrouping to apply grouping to all items.

Using with Hierarchy

If the Grid displays hierarchical data and an item gets expanded, it will not be collapsed when the items are scrolled and a new page will be requested.

The filtering, sorting, and grouping operations reset the scroll position.

Using with DataSource operations

When a filter, sort, or group is applied through the DataSource methods rather than the Grid UI, the scroll position isn't automatically reset.

In such cases, the scroll position and pageSize should be updated manually.

        scrollable: {
            endless: true
        // Other configuration.

    let grid = $("#grid").data("kendoGrid");

    // Reset the scroll position and update the pageSize before invoking the operation.
    grid.dataSource.options.endless = null;
    grid._endlessPageSize = grid.dataSource.options.pageSize;

    // Apply a filter, sort or group after that.
    let filter = {field: "exampleField", operator: "eq", value: "example value"}

Known Limitations

  • Either enable endless scrolling or paging. Do not apply both features at the same time.

KB Articles on Scrolling

See Also

In this article