# setServerSideSelectionState

Replaces select-all conditions and exception IDs in the flat server row model.

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

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

## What does this API do?

Replaces select-all conditions and exception IDs in the flat server row model.

API for Pro features: Server-Side Row Model

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

## Exact input and result types

```typescript
setServerSideSelectionState(input: unknown): Promise<SyGridServerSelectionSetResult>
```

| Arguments | Required | Type |
| --- | --- | --- |
| input | Required | unknown |

The return type is `Promise<SyGridServerSelectionSetResult>`.

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

## Usage flow

After registering and initializing the Grid element, call grid.setServerSideSelectionState(…). 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

- [SyGridServerSelectionSetResult](https://grid.syidax.com/docs/types/SyGridServerSelectionSetResult.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.
