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

Load and Append More Records While Scrolling Down

Deprecated The functionality is available out of the box. Check endless scrolling

The following example demonstrates how to load more records when scrolling the Grid rows.

The difference between this scenario and virtual scrolling is that here the number of records constantly increases, while virtual scrolling replaces the existing records with new ones. Note that when you increase the page size, the data requests are slower.

To achieve this behavior:

  1. Subscribe to the scroll event of the Grid data container and increment the page size by a desired value.
  2. Use a flag to prevent multiple simultaneous page size increments. The flag should be set in the scroll event handler, and cleared in the dataBound event handler of the Grid.

The functionality is incompatible with virtual scrolling.

    <div id="grid"></div>

        var gridElement = $("#grid")
        var pagingIncrement = 20;
        var scrollbarWidth =;
        var dataBindingFlag = true;

            dataSource: {
                type: "odata",
                transport: {
                    read: ""
                schema: {
                    model: {
                        fields: {
                            OrderID: { type: "number" },
                            Freight: { type: "number" },
                            ShipName: { type: "string" },
                            OrderDate: { type: "date" }
                pageSize: 20,
                serverPaging: true
            pageable: true,
            dataBound: function() {
                dataBindingFlag = true;
            columns: [{
            }, {
                field: "Freight"
            }, {
                field: "OrderDate",
                title: "Order Date",
                format: "{0:MM/dd/yyyy}"
            }, {
                field: "ShipName",
                title: "Ship Name"

        var gridDataSource ="kendoGrid").dataSource;

            .on("scroll", function(e){
                if (dataBindingFlag) {
                    var dataDiv =;
                    var currentPageSize = gridDataSource.pageSize();
                    if (dataDiv.scrollTop >= dataDiv.scrollHeight - dataDiv.offsetHeight - scrollbarWidth && > currentPageSize) {
                        dataBindingFlag = false;
                        gridDataSource.pageSize(currentPageSize + pagingIncrement);

        #grid { height: 300px; }

See Also

In this article