# RemoteTreeOptions (@salmonui/data-grid/engine/tree-remote)

> The RemoteTreeOptions interface of @salmonui/data-grid/engine/tree-remote.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-tree-remote/RemoteTreeOptions

```ts
import type { RemoteTreeOptions } from '@salmonui/data-grid/engine/tree-remote';
```

Entry index: https://salmonui.dev/docs/reference/data-grid/engine-tree-remote (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine-tree-remote.md).

## Reference

Kind: interface

```ts
interface RemoteTreeOptions<Row> {
    readonly getRowId: (row: Row, index: number) => RowId;
    readonly onError?: (event: RemoteTreeError) => void;
    readonly rootBlocks?: {
        readonly blockSize?: number;
        readonly initialBlocks?: number;
    };
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `getRowId` | `readonly getRowId: (row: Row, index: number) => RowId;` |  | The grid's `getRowId`. |
| `onError` | `readonly onError?: (event: RemoteTreeError) => void;` | optional | Called once per failed child load (not for aborted loads). |
| `rootBlocks` | `readonly rootBlocks?: {     readonly blockSize?: number;     readonly initialBlocks?: number; };` | optional | Infinite scroll in tree mode: read the root rows in blocks of `blockSize` (default 100; `range` over the root level), `initialBlocks` (default 3) on the first read, the next block on `loadMoreRoots()`. Ignored while the query pages (`pageBy: 'root'` paging). |
