Skip to content

GetRowsResult

Result returned from ServerSideDataSource.getRows.

// Known total (pagination-style)
return { rows: pageData, totalNodeCount: 5000 };
// Infinite scroll — set lastNode when the final page is reached
return { rows: pageData, totalNodeCount: -1, lastNode: absoluteLastIndex };
PropertyTypeDescription
rowsTRow[]The fetched top-level node objects for the requested range.
totalNodeCountnumberTotal number of top-level nodes available on the server. Use -1 if unknown (infinite scroll mode).
lastNode?numberThe absolute index of the last available node. Only needed for infinite scroll when totalNodeCount is -1. Once the server returns the final page, set this so the grid knows scrolling has reached the end and stops requesting further blocks.
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