This sample demonstrates Virtual Scrolling in the Syncfusion JavaScript Pivot Table component. Virtual scrolling helps you handle large datasets efficiently by loading rows and columns on demand as you scroll, instead of rendering all data at once.
The Pivot Table is a powerful tool for summarizing and analyzing data. When working with thousands of records, rendering everything at once can slow down performance. Virtual Scrolling solves this by:
- Loading only the visible rows and columns.
- Fetching additional data dynamically as you scroll.
- Keeping the UI responsive even with large datasets.
In this example:
- We use a large client-side data source with fields like
ProductID,City,Year,CustomerName,Sold, andInStock. - Virtual scrolling is enabled using the
enableVirtualizationproperty. - The layout includes rows, columns, values, and filters similar to a standard Pivot Table.
- A modern browser (Chrome, Firefox, Edge)
- Node.js (optional, for running a local server)
-
Clone the repository:
git clone https://github.com/SyncfusionExamples/virtual-scrolling-in-pivot-table
-
Install dependencies (optional):
npm install
-
Run the application:
npm start
This launches the app in your default browser using browser-sync.
-
Alternatively, open
Virtual_Scrolling.htmldirectly in your browser.
- High-performance rendering of large datasets
- Instant loading of up to 1 million records
- Smooth scrolling using virtual rendering
- No external dependencies β runs in the browser
Virtual_Scrolling.htmlβ Main sample file with PivotView configuration.styles.cssβ Optional custom styles.package.jsonβ Scripts and dependencies.
For questions or feedback, visit the Syncfusion Support Portal or Community Forums.
This is a commercial product and requires a valid Syncfusion license.
View License Terms.