Skip to content

ServerSideConfig

Configuration for the server-side data plugin.

Controls how the grid fetches, caches, and paginates data from a remote source. The grid requests data in blocks (contiguous row ranges) as the user scrolls, caching them locally to avoid redundant network requests.

new ServerSidePlugin({
pageSize: 100,
cacheBlockSize: 200,
maxConcurrentRequests: 2,
})
PropertyTypeDescription
pageSize?numberNumber of rows to request per fetch. This determines the endRow - startRow range passed to getRows(). Smaller values mean faster initial loads but more frequent requests while scrolling.
cacheBlockSize?numberNumber of rows kept in each cache block. When a block is evicted (e.g. scrolled far away), re-scrolling back triggers a new fetch. Should be ≥ pageSize; larger values reduce re-fetches at the cost of memory.
maxConcurrentRequests?numberMaximum number of concurrent getRows() requests. Limits how many blocks can be fetched simultaneously during fast scrolling. Set to 1 for strict sequential loading; higher values improve perceived performance.

Default: 100


Default: 200


Default: 2


AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt