# datasource

Data provider for the infinite row model. Complete each requested range through its success or failure callback.

Canonical: https://grid.syidax.com/docs/options/datasource/

<a id="meaning"></a>

## What does this API do?

Data provider for the infinite row model. Complete each requested range through its success or failure callback.

<a id="contract"></a>

## Exact input and result types

```typescript
datasource: InfiniteRowDatasource
```

| Item | Value |
| --- | --- |
| JavaScript name | datasource |
| HTML attribute | datasource |
| Default | undefined |
| Input type | InfiniteRowDatasource |

<a id="usage"></a>

## Usage flow

Set this on a property of the Grid element. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

<a id="types"></a>

## Read related types

- [InfiniteRowDatasource](https://grid.syidax.com/docs/types/InfiniteRowDatasource.md)

<a id="recipes"></a>

## Feature explanations and examples

- [Request only needed blocks](https://grid.syidax.com/docs/features/infinite-row-model.md) — When downloading every order at once is impractical, request only the ranges needed for scrolling. datasource supplies data based on starting and ending rows and search conditions.
