Highcharts Grid
    Preparing search index...

    A base interface for the data provider options (grid.options.data).

    interface RemoteDataProviderOptions {
        chunkSize?: number;
        chunksLimit?: number;
        dataSource?: DataSourceOptions;
        fetchCallback?: (
            this: RemoteDataProvider,
            query: QueryingController,
            offset: number,
            limit: number,
            signal?: AbortSignal,
        ) => Promise<RemoteFetchCallbackResult>;
        idColumn?: string;
        providerType: "remote";
        requestPolicy?: "all" | "latest";
        setValueCallback?: (
            this: RemoteDataProvider,
            columnId: string,
            rowId: RowId,
            value: CellType,
        ) => Promise<void>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    chunkSize?: number

    The number of rows to fetch per chunk.

    chunksLimit?: number

    Maximum number of chunks to keep in memory. When exceeded, the least recently used (LRU) chunk is evicted. If not set, all chunks are kept.

    dataSource?: DataSourceOptions

    Serialized data source configuration, alternatively to fetchCallback.

    fetchCallback?: (
        this: RemoteDataProvider,
        query: QueryingController,
        offset: number,
        limit: number,
        signal?: AbortSignal,
    ) => Promise<RemoteFetchCallbackResult>

    Custom callback to fetch data from the remote server. Has higher priority than dataSource.

    idColumn?: string

    The column ID that contains the stable, unique row IDs. If not provided, the row IDs will be extracted from the result.rowIds property if available. If result.rowIds is also not defined, the row IDs will default to the indices of the rows in their display order.

    providerType: "remote"

    The type of the data provider.

    'local'
    
    requestPolicy?: "all" | "latest"

    Request policy for rapid query changes. latest aborts or ignores in-flight requests so only the final query updates the cache.

    'latest'
    
    setValueCallback?: (
        this: RemoteDataProvider,
        columnId: string,
        rowId: RowId,
        value: CellType,
    ) => Promise<void>

    Callback to persist value changes to the remote server. If not provided, cell value editing will not be possible.

    The callback receives the column ID, row ID and value to set.