Skip to content

GetRowsResult

Result returned from ServerSideDataSource.getRows.

// Known total (pagination-style)
return { rows: pageData, totalRowCount: 5000 };
// Infinite scroll — set lastRow when the final page is reached
return { rows: pageData, totalRowCount: -1, lastRow: absoluteLastIndex };
PropertyTypeDescription
rowsany[]The fetched row objects for the requested range.
totalRowCountnumberTotal number of rows available on the server. Use -1 if unknown (infinite scroll mode).
lastRow?numberThe absolute index of the last row in the dataset. Only needed for infinite scroll when totalRowCount 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