# selectAllServerSide

Sets server-wide selection conditions without materializing every server row in memory.

Canonical: https://grid.syidax.com/docs/methods/selectAllServerSide/

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

## What does this API do?

Sets server-wide selection conditions without materializing every server row in memory.

API for Pro features: Server-Side Row Model

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

## Exact input and result types

```typescript
selectAllServerSide(action?: 'select' | 'clear'): Promise<SyGridServerSelectAllResult>
```

| Arguments | Required | Type |
| --- | --- | --- |
| action | Optional | 'select' \| 'clear' |

The return type is `Promise<SyGridServerSelectAllResult>`.

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

## Usage flow

After registering and initializing the Grid element, call grid.selectAllServerSide(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

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

## Read related types

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

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

## Feature explanations and examples

- [Server-side row model](https://grid.syidax.com/docs/features/server-side-row-model.md) — In this model, the server calculates grouping and pivots and supplies rows for each expanded group path. Its data responsibilities differ from grouping already loaded local rows with groupBy.
