Parameters required to initialize a client-side row data source.
Rows to pin to the bottom of the grid, rendered below all scrollable rows.
No properties
The primary dataset passed to LyteNyte Grid for display.
No properties
If true, the data source will reflect external mutations to the original data array.
boolean
Callback to derive a unique id for grouped (branch) rows based on group value path.
path | string[] |
string
Callback to derive a unique id for each leaf row. Receives the row data and index.
d | RowLeaf (docs) |
i | number |
string
The number of rows to have per page. This will impact the total page count.
number
Rows to pin to the top of the grid, rendered above all scrollable rows.
No properties
Callback that transforms a set of values for a given column into the in filter items LyteNyte Grid should use.
params | { column: Column; values: values { } } |
FilterInFilterItem[]
(docs)
Enhanced parameters for a client-side row data source with additional filtering support.
Rows to pin to the bottom of the grid, rendered below all scrollable rows.
No properties
The primary dataset passed to LyteNyte Grid for display.
No properties
If true, the data source will reflect external mutations to the original data array.
boolean
Callback to derive a unique id for grouped (branch) rows based on group value path.
path | string[] |
string
Callback to derive a unique id for each leaf row. Receives the row data and index.
d | RowLeaf (docs) |
i | number |
string
Rows to pin to the top of the grid, rendered above all scrollable rows.
No properties
Callback that transforms a set of values for a given column into the in filter items LyteNyte Grid should use.
params | { column: Column; values: values { } } |
FilterInFilterItem[]
(docs)
Parameters for initializing a tree-structured data source in LyteNyte Grid.
Rows to pin to the bottom of the grid, rendered below all scrollable rows.
No properties
The primary dataset passed to LyteNyte Grid for display.
No properties
Returns the hierarchical path to group a given data row in tree mode.
data | RowLeaf (docs) |
[object Object],[object Object],[object Object][]
If true, the data source will reflect external mutations to the original data array.
boolean
Callback to derive a unique id for grouped (branch) rows based on group value path.
path | string[] |
string
Callback to derive a unique id for each leaf row. Receives the row data and index.
d | RowLeaf (docs) |
i | number |
string
Rows to pin to the top of the grid, rendered above all scrollable rows.
No properties
Callback that transforms a set of values for a given column into the in filter items LyteNyte Grid should use.
params | { column: Column; values: values { } } |
FilterInFilterItem[]
(docs)
Fetches pivoted columns for the grid's current pivot configuration.
params | DataColumnPivotFetcherParams (docs) |
Promise
Parameters passed to the column pivot fetcher function.
A reference to the LyteNyte Grid instance.
Type | Grid |
The full model describing the pivot request state.
Type | DataRequestModel |
Timestamp representing the time of the request.
number
Fetches grid row data asynchronously for the LyteNyte Server Data Source.
params | DataFetcherParams (docs) |
Promise
Input parameters provided to a grid data fetcher function.
A reference to the LyteNyte Grid instance.
Type | Grid |
The full data request model describing grid state.
Type | DataRequestModel |
Unix timestamp representing when the request was initiated.
number
Array of individual data fetch requests.
No properties
Fetches items used in "in" filters from a server-side source.
params | DataInFilterItemFetcherParams (docs) |
Promise | FilterInFilterItem[]
Represents a specific request for data to an external data source.
End offset of the requested rows, relative to the current path.
number
Unique id for the request, useful for caching and deduplication.
string
Hierarchy path for the request. An empty array represents the root level.
No properties
Grid row index where the request ends.
number
Grid row index where the request starts.
number
Start offset of the requested rows, relative to the current path.
number
Describes the current grid state used to construct a request for external data.
Map of aggregation functions per column.
Type | Record |
The simple filters currently applied to columns. The key of the record is the column id. It is not guaranteed that the column id in the filters is present in the columns in the grid.
Type | Record |
The in (set) filters currently applied to the columns. The key of the record is the column id. It is not guaranteed that the column id in the in filters is present in the columns in the grid.
Type | Record |
Group model defining how rows are grouped.
No properties
Expansion state of row groups by group key.
Type | Record |
Expansion state of pivot row groups.
Type | Record |
Indicates whether pivot mode is enabled.
boolean
Model describing current pivot column state.
Type | ColumnPivotModel |
Quick search text value, or null if not in use.
null | string
null
string
Array of column sort configurations.
No properties
Response object for row data from a center section request.
Unix timestamp indicating when the data is valid from. Used to resolve response conflicts.
number
Array of leaf or branch rows returned for the given path.
No properties
End offset within the hierarchy segment.
number
Must be "center" — the section this response applies to.
"\"center\""
Hierarchy path the data belongs to. Empty array means root.
No properties
Updated row count for the associated path.
number
Start offset within the hierarchy segment.
number
Represents a group (branch) row returned from a data request.
Number of immediate children under this group.
number
The row data associated with this branch.
any
Unique identifier used to create the branch row.
string
The key of the group the row represents.
null | string
null
string
Discriminates the item as a branch response.
"\"branch\""
Represents a row of data (a leaf node) returned in a server response.
Arbitrary data associated with this row.
any
Unique row identifier for the grid.
string
Type identifier for a leaf response item.
"\"leaf\""
Response object for setting pinned row data (top or bottom).
Unix timestamp indicating when the data is valid from. Used to resolve response conflicts.
number
Array of leaf rows for the pinned section.
No properties
Specifies the pinned section this data applies to: "top" or "bottom".
"top" | "bottom"
"top"
"bottom"
Parameters passed to the row selection handler within the row data source.
Indicates whether the action should deselect the specified rows.
boolean
The ending row id of the selection range.
string
The current selection mode applied to the row operation.
Type | RowSelectionMode |
Indicates whether to include child rows in the selection.
boolean
The starting row id of the selection range.
string
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.
Returns the available in-filter items for the specified column. May return items synchronously or as a Promise.
column | Column (docs) |
FilterInFilterItem[] | Promise
Initializes the row data source. Called by LyteNyte Grid when the grid is ready.
grid | Grid (docs) |
void
Adds new rows to the grid optionally at a specific index, beginning, or end.
newRows | any[] |
atIndex | number | "end" | "beginning" |
void
Returns the list of child row ids associated with a given parent row id.
rowId | string |
string[]
Returns true
if all rows are selected, otherwise false
.
rowId | string |
boolean
Returns the row node for a given row id. May return null
if the id is undefined.
id | string |
null | RowNode
Returns the row node for a given index. May return null
if index is out of bounds.
index | number |
null | RowNode
Deletes rows by their id or index using a provided array of keys.
deletions | [object Object],[object Object][] |
void
Handles expansion state changes for grouped rows.
expansion | Record |
void
Handles row selection updates and modifies selection state.
params | RdsRowSelectParams (docs) |
void
Selects or deselects all rows based on the provided parameters.
params | RowSelectAllOptions (docs) |
void
Sets the data for rows pinned to the bottom section.
data | any[] |
void
Sets the data for the center rows (scrollable rows) of the grid. Effectively replacing the current row data.
newRows | any[] |
void
Sets the data for rows pinned to the top section.
data | any[] |
void
Returns the row index corresponding to a row id, or null
if not found.
rowId | string |
null | number
Updates row data using a map of row ids or indexes mapped to updated values.
updates | Map |
void
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.
Returns the available in-filter items for the specified column. May return items synchronously or as a Promise.
column | Column (docs) |
FilterInFilterItem[] | Promise
Initializes the row data source. Called by LyteNyte Grid when the grid is ready.
grid | Grid (docs) |
void
Adds new rows to the grid optionally at a specific index, beginning, or end.
newRows | any[] |
atIndex | number | "end" | "beginning" |
void
Returns the list of child row ids associated with a given parent row id.
rowId | string |
string[]
Returns true
if all rows are selected, otherwise false
.
rowId | string |
boolean
Returns the row node for a given row id. May return null
if the id is undefined.
id | string |
null | RowNode
Returns the row node for a given index. May return null
if index is out of bounds.
index | number |
null | RowNode
A client data source method to retrieve the raw data passed to the data source.
section | RowSection (docs) |
T[]
Deletes rows by their id or index using a provided array of keys.
deletions | [object Object],[object Object][] |
void
Handles expansion state changes for grouped rows.
expansion | Record |
void
Handles row selection updates and modifies selection state.
params | RdsRowSelectParams (docs) |
void
Selects or deselects all rows based on the provided parameters.
params | RowSelectAllOptions (docs) |
void
Sets the data for rows pinned to the bottom section.
data | any[] |
void
Sets the data for the center rows (scrollable rows) of the grid. Effectively replacing the current row data.
newRows | any[] |
void
Sets the data for rows pinned to the top section.
data | any[] |
void
Returns the row index corresponding to a row id, or null
if not found.
rowId | string |
null | number
Updates row data using a map of row ids or indexes mapped to updated values.
updates | Map |
void
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.
The currently active page number.
Type | GridAtom |
The total number of available pages.
Type | GridAtomReadonly |
The number of rows displayed per page.
Type | GridAtom |
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.
Returns the available in-filter items for the specified column. May return items synchronously or as a Promise.
column | Column (docs) |
FilterInFilterItem[] | Promise
Initializes the row data source. Called by LyteNyte Grid when the grid is ready.
grid | Grid (docs) |
void
The properties of the current pagination state.
Adds new rows to the grid optionally at a specific index, beginning, or end.
newRows | any[] |
atIndex | number | "end" | "beginning" |
void
Returns the list of child row ids associated with a given parent row id.
rowId | string |
string[]
Returns true
if all rows are selected, otherwise false
.
rowId | string |
boolean
Returns the row node for a given row id. May return null
if the id is undefined.
id | string |
null | RowNode
Returns the row node for a given index. May return null
if index is out of bounds.
index | number |
null | RowNode
A client data source method to retrieve the raw data passed to the data source.
section | RowSection (docs) |
T[]
Deletes rows by their id or index using a provided array of keys.
deletions | [object Object],[object Object][] |
void
Handles expansion state changes for grouped rows.
expansion | Record |
void
Handles row selection updates and modifies selection state.
params | RdsRowSelectParams (docs) |
void
Selects or deselects all rows based on the provided parameters.
params | RowSelectAllOptions (docs) |
void
Sets the data for rows pinned to the bottom section.
data | any[] |
void
Sets the data for the center rows (scrollable rows) of the grid. Effectively replacing the current row data.
newRows | any[] |
void
Sets the data for rows pinned to the top section.
data | any[] |
void
Returns the row index corresponding to a row id, or null
if not found.
rowId | string |
null | number
Updates row data using a map of row ids or indexes mapped to updated values.
updates | Map |
void
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.
Returns the available in-filter items for the specified column. May return items synchronously or as a Promise.
column | Column (docs) |
FilterInFilterItem[] | Promise
Initializes the row data source. Called by LyteNyte Grid when the grid is ready.
grid | Grid (docs) |
void
Indicates whether the server data source is currently fetching data. This can be used to show a loading indicator in the UI.
Type | GridAtomReadonly |
If the initial data load for the server data fails, the loadError will be set with the error value. This is only set if the initial load failed.
Type | GridAtomReadonly |
Triggers the data fetching pipeline with a set of requests. Can optionally invoke a callback upon successful completion.
req | DataRequest[] (docs) |
onSuccess | () => void |
onError | (e: ) => void |
void
Pushes data responses directly into the data source. Useful for preloading, live updates, or streaming responses.
req | [object Object],[object Object][] |
void
Resets the internal state and clears all server data previously fetched by the grid.
This function takes no parameters.
void
Retries the failed data load requests.
This function takes no parameters.
void
Adds new rows to the grid optionally at a specific index, beginning, or end.
newRows | any[] |
atIndex | number | "end" | "beginning" |
void
Returns the list of child row ids associated with a given parent row id.
rowId | string |
string[]
Returns true
if all rows are selected, otherwise false
.
rowId | string |
boolean
Returns the row node for a given row id. May return null
if the id is undefined.
id | string |
null | RowNode
Returns the row node for a given index. May return null
if index is out of bounds.
index | number |
null | RowNode
Deletes rows by their id or index using a provided array of keys.
deletions | [object Object],[object Object][] |
void
Handles expansion state changes for grouped rows.
expansion | Record |
void
Handles row selection updates and modifies selection state.
params | RdsRowSelectParams (docs) |
void
Selects or deselects all rows based on the provided parameters.
params | RowSelectAllOptions (docs) |
void
Sets the data for rows pinned to the bottom section.
data | any[] |
void
Sets the data for the center rows (scrollable rows) of the grid. Effectively replacing the current row data.
newRows | any[] |
void
Sets the data for rows pinned to the top section.
data | any[] |
void
Returns the row index corresponding to a row id, or null
if not found.
rowId | string |
null | number
Updates row data using a map of row ids or indexes mapped to updated values.
updates | Map |
void
Parameters for configuring the server row data source.
Number of rows to fetch in a single data block request.
number
Function called to handle cell updates in the grid.
updates | Map |
void
Whether cell updates should be applied optimistically.
boolean
Optional function to fetch columns when pivot mode is enabled.
Function that fetches grid data when rows are requested.
Type | DataFetcherFn |
Optional function for fetching items for in-type filters.
The internal row data store used by LyteNyte Grid to manage row metadata, counts, and access functions.
Number of rows pinned to the bottom section.
Type | GridAtom |
Number of scrollable rows in the center section.
Type | GridAtom |
Clears the cached row node data in the store.
This function takes no parameters.
void
Total number of rows present in the grid.
Type | GridAtomReadonly |
Retrieves the row node for the given row index.
row | number |
GridAtomReadonlyUnwatchable
(docs)
Invalidates the row node for the given index, forcing a refresh.
row | number |
void
Number of rows pinned to the top section.
Type | GridAtom |
Specifies the height of the row detail section. Can be a fixed number of pixels or "auto" to size based on content.
number | "auto"
number
"auto"
A function used to render custom row detail content. It should return a ReactNode to be displayed in the row's expanded detail area.
params | RowDetailRendererParams (docs) |
ReactNode
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.
A reference to the LyteNyte Grid instance.
Type | Grid |
The row node instance in LyteNyte Grid.
Type | RowNode |
The zero-based index of the row.
number