DevExtreme v23.1 is now available.

Explore our newest features/capabilities and share your thoughts with us.

Your search did not match any results.
Data Grid

Remote Virtual Scrolling

With remote virtual scrolling, pages are loaded from the server when they enter the viewport. To enable this feature, set the scrolling.mode property to "virtual" and the remoteOperations property to true. The latter informs the DataGrid that the server handles paging.

In this demo, the server contains 1,000,000 records and returns 100 records per page. The page size is set using the paging.pageSize property. The larger it is, the fewer requests are sent to the server. To reduce the time required for rendering the loaded rows, set the scrolling.rowRenderingMode to "virtual" — the DataGrid renders only rows that are in the viewport.


The data source in this demo is configured to return only 1000 records per request.

Backend API
Copy to CodePen
const DemoApp = angular.module('DemoApp', ['dx']); DemoApp.controller('DemoController', ($scope) => { $scope.dataGridOptions = { dataSource:{ key: 'Id', loadUrl: '', }), remoteOperations: true, scrolling: { mode: 'virtual', rowRenderingMode: 'virtual', }, paging: { pageSize: 100, }, headerFilter: { visible: true, allowSearch: true, }, wordWrapEnabled: true, showBorders: true, columns: [{ dataField: 'Id', width: 75, }, { caption: 'Store', dataField: 'StoreName', width: 150, }, { caption: 'Category', dataField: 'ProductCategoryName', width: 120, }, { caption: 'Product', dataField: 'ProductName', }, { caption: 'Date', dataField: 'DateKey', dataType: 'date', format: 'yyyy-MM-dd', width: 100, }, { caption: 'Amount', dataField: 'SalesAmount', format: 'currency', headerFilter: { groupInterval: 1000, }, width: 100, }], }; });
<!DOCTYPE html> <html xmlns=""> <head> <title>DevExtreme Demo</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <script src=""></script> <script>window.jQuery || document.write(decodeURIComponent('%3Cscript src="js/jquery.min.js"%3E%3C/script%3E'))</script> <link rel="stylesheet" type="text/css" href="" /> <script src=""></script> <script>window.angular || document.write(decodeURIComponent('%3Cscript src="js/angular.min.js"%3E%3C/script%3E'))</script> <script src=""></script> <script src=""></script> <link rel="stylesheet" type="text/css" href="styles.css" /> <script src="index.js"></script> </head> <body class="dx-viewport"> <div class="demo-container" ng-app="DemoApp" ng-controller="DemoController"> <div id="gridContainer" dx-data-grid="dataGridOptions"></div> </div> </body> </html>
#gridContainer { height: 440px; }