API REFERENCE

viewportDatasource

Viewport model supplying data for visible row ranges. Implement initialization, range changes, and cleanup.

What does this API do?

Viewport model supplying data for visible row ranges. Implement initialization, range changes, and cleanup.

API for Pro features: Viewport row model

Exact input and result types

typescript
viewportDatasource: ViewportDatasource<GridRow>
ItemValue
JavaScript nameviewportDatasource
HTML attributeviewport-datasource
Defaultundefined
Input typeViewportDatasource<GridRow>

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.

Read related types

Feature explanations and examples