# virtualScroll

Enables vertical virtualization, rendering rows near the viewport. Does not reduce total data downloads.

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

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

## What does this API do?

Enables vertical virtualization, rendering rows near the viewport. Does not reduce total data downloads.

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

## Exact input and result types

```typescript
virtualScroll: boolean
```

| Item | Value |
| --- | --- |
| JavaScript name | virtualScroll |
| HTML attribute | virtual-scroll |
| Default | true |
| Input type | boolean |

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

## Usage flow

Set this on a property of the Grid element. In HTML, you can also use the virtual-scroll attribute. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

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

## Feature explanations and examples

- [Large data sets](https://grid.syidax.com/docs/features/virtualization.md) — Virtualization renders only row and column DOM needed near the viewport. It is separate from row models that fetch only part of the data from a server.
