滚动时动态呈现网格行

6月 30, 2025
使用虚拟和无限滚动动态呈现可见内容,从而提高您 JavaScript 应用程序中数据网格的性能。

继续用英语阅读:

The ability to load items in a data grid as you scroll is a technique where content is rendered or fetched dynamically based on the user’s scroll position. Its purpose is to improve performance, and ultimately the user experience, when dealing with large datasets. This includes virtual scrolling, where the grid only renders rows that are currently visible in the viewport and reuses those same DOM elements as the user scrolls, and infinite scrolling (also known as endless scrolling), where additional data is loaded from a remote source in response to reaching the end of the currently displayed dataset. By minimizing the amount of data rendered or retrieved at any one time, this approach significantly reduces initial load times, improves responsiveness, and allows applications to scale efficiently.

Several JavaScript grid components allow you to load items as the user scrolls, including:

  • DevExtreme HTML5 JavaScript Data Grid (part of DevExtreme by DevExpress) supports both virtual and infinite scrolling to optimize data loading performance.
  • KendoReact Data Grid (part of KendoReact by Telerik) offers customizable column/row virtualization and virtual scrolling, dynamically requesting data as needed.
  • Sencha Ext JS Grid (part of Sencha Ext JS) implements infinite scrolling through a virtualized system that loads data on demand without traditional pagination.
  • Syncfusion DataGrid for JavaScript (part of Syncfusion Essential Studio Enterprise) allows both virtualization and infinite scrolling for responsive grid rendering.

For an in-depth analysis of features and price, visit our comparison of JavaScript grid components.

Compare JavaScript Grid Components