LyteNyte Grid logo for light mode. Links back to the documentation home page.
Rows

Row Data Source

The API reference for the row data source functionality in LyteNyte Grid.

ClientRowDataSourcePaginatedParams

Parameters required to initialize a client-side row data source.

Prop

ClientRowDataSourceParams

Enhanced parameters for a client-side row data source with additional filtering support.

Prop

ClientTreeDataSourceParams

Parameters for initializing a tree-structured data source in LyteNyte Grid.

Prop

DataColumnPivotFetcherFn

Prop

DataColumnPivotFetcherParams

When column pivots are applied in LyteNyte Grid, the grid fetches pivot column definitions separately from the pivot row data. The DataColumnPivotFetcherParams type defines the parameters passed to the fetcher that retrieves these column pivot definitions from the server.

Prop

DataFetcherFn

Prop

DataFetcherParams

The LyteNyte Grid server data source requires a dataFetcher function. The DataFetcherParams type describes the parameters that LyteNyte Grid passes to this function when performing data loading.

These parameters include a set of DataRequest objects based on the current grid view and the DataRequestModel at the time of the call. A reqTime value is also provided, which is a Unix timestamp indicating when the request was made.

Prop

DataInFilterItemFetcherFn

Prop

DataInFilterItemFetcherParams

The in filter (set filter) in LyteNyte Grid requests possible values from the row data source attached to the grid state. For a server data source, the unique values for a given column are stored on the server.

Developers can supply a DataInFilterItemFetcherFn to the server data source to retrieve these unique filter items. The DataInFilterItemFetcherParams type defines the parameters passed to the fetcher function.

Prop

DataRequest

The DataRequest type represents a request for a slice of data from the server. A slice can target either the root of the view or a specific grouping, identified by the path property.

Each request includes a unique ID, which can be used to deduplicate requests or enable caching. It also defines start and end values that specify the offsets of the requested slice.

LyteNyte Grid may issue multiple DataRequest objects at once, depending on the user's current view. Each request is a snapshot of the grid state at the time it was made.

Prop

DataRequestModel

The data request model represents the current LyteNyte Grid state at the time of creation. It concatenates the grid's internal models into a single structure used to request external data. Depending on your server's capabilities, you can choose to omit certain parts of the model.

The model is a snapshot only; it is not reactive and does not stay in sync with the grid's ongoing state.

Prop

DataResponse

LyteNyte Grid's server data source sends request objects describing the data needed to render the grid. The server responds with one or more DataResponse objects.

A DataResponse contains the rows and metadata required to render a slice of the grid's view. Each response includes a path value, which identifies where in the row tree the data belongs. Parent paths must be provided before their child paths can be created.

The server data source can handle multiple responses at once. Sending multiple responses for different slices is common, especially when data updates frequently.

Prop

DataResponseBranchItem

The DataResponseBranchItem represents a group node. These items are converted into group row nodes and indicate that additional child rows are nested beneath them.

Prop

DataResponseLeafItem

The DataResponseLeafItem represents the data for a leaf row node. A leaf node is the last level in the data tree and cannot be expanded further. Leaf nodes appear when the view is flat (no row groups) or when the expanded row is at the final grouping level.

Each DataResponseLeafItem corresponds to a single row node, and responses can mix different node types in the same request. When row groups are present, a leaf item may appear before the final grouping level, which can result in unbalanced groups.

Prop

DataResponsePinned

Pinned rows in LyteNyte Grid remain visible regardless of user interaction such as scrolling. By definition, pinned rows do not move within the view.

The DataResponsePinned type provides data for pinned rows and allows the server to set or update rows pinned to the top or bottom of the view.

Prop

RdsRowSelectParams

Parameters passed to the row selection handler within the row data source.

Prop

RowDataSource

The row data source interface used by LyteNyte Grid to retrieve and manage row data. This includes functionality for row expansion, selection, and CRUD operations.

Prop

RowDataSourceClient

A client-side row data source used by LyteNyte Grid. All operations are handled on the client, assuming the complete dataset is available in memory.

This implementation is suitable for small to moderately sized datasets. For large-scale datasets, such as those exceeding hundreds of thousands of rows, a server-based data source is recommended for performance and memory efficiency.

Prop

RowDataSourceClientPageState

Represents pagination-related state for the client row data source in LyteNyte Grid. These values enable pagination logic within the grid's UI and interactions.

Prop

RowDataSourceClientPaginated

A paginated client-side row data source for LyteNyte Grid. It divides the full dataset into pages based on the configured page size, reducing the number of rows rendered at any one time to improve UI responsiveness and performance.

Prop

RowDataSourceServer

A high-performance row data source for LyteNyte Grid that enables server-side data loading in slices. This data source supports virtually unlimited data volumes by querying only the required data ranges from a backend source.

Unlike client-side data sources, all row operations—including filtering, sorting, grouping, and pagination—must be handled on the server. This design provides maximum flexibility and scalability, including support for server-driven trees and pagination, but requires a more complex implementation on the backend.

Prop

RowDataSourceServerParams

The LyteNyte Grid server row data source provides an implementation optimized for fetching data in slices from the server.

The RowDataSourceServerParams type defines the configuration parameters that can be passed to this row data source.

Prop

RowDataStore

The internal row data store used by LyteNyte Grid to manage row metadata, counts, and access functions.

Prop

RowDetailHeight

Prop

RowDetailRendererFn

Prop

RowDetailRendererParams

Defines the parameters passed to a row detail renderer. These parameters include the row index, the row node metadata, and a reference to the grid instance.

Prop