LyteNyte Grid's server row source extends the base row source with additional capabilities for server-side data loading.
Use the server data source when the full row dataset is too large to feasibly load into
the user’s browser. See the Server Row Overview guide
for more details.
To create a server row source, use the useServerDataSource hook exported by LyteNyte Grid.
This hook accepts parameters that configure the server source view.
Prop
An async data fetcher function that retrieves row data in slices.
An array of values provided to the queryFn. The keys are shallow-compared for changes. Any change resets the server source.
The number of rows to request for each server round trip.
A hint indicating whether the server row source contains row groups.
An event callback that fires when row data is updated.
A callback invoked whenever a row is expanded or collapsed.
An event callback that fires when rows are added to the grid.
An event callback that fires when rows are deleted from the grid.
A callback invoked whenever a row is selected or deselected.
The default row group expansion behavior. If a number is provided, row groups with a depth less than or equal to the number are expanded.
The expansion state of tree nodes. Provide this value to control which nodes
are expanded or collapsed.
The row selection state used by the TreeView component. If not provided, the
TreeView component uses internal selection state. Provide this value to control selection
externally.
Additional row selection IDs to retain even if they do not correspond to rows in the data.
Row IDs that should not be considered selectable.
A custom key that resets row selection when the key changes.
Whether the client row source uses isolated row selection instead of linked selection.
Whether row updates are applied optimistically before the server responds.