GetRowsResult
Result returned from ServerSideDataSource.getRows.
Example
Section titled “Example”// Known total (pagination-style)return { rows: pageData, totalRowCount: 5000 };
// Infinite scroll — set lastRow when the final page is reachedreturn { rows: pageData, totalRowCount: -1, lastRow: absoluteLastIndex };Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
rows | any[] | The fetched row objects for the requested range. |
totalRowCount | number | Total number of rows available on the server. Use -1 if unknown (infinite scroll mode). |
lastRow? | number | The 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