# SyGridServerSelectionState

Fields, allowed values, and APIs that use SyGridServerSelectionState.

Canonical: https://grid.syidax.com/docs/types/SyGridServerSelectionState/

<a id="definition"></a>

## Type definition

A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.

```typescript
export interface SyGridServerSelectionState {
  status: SyGridServerSelectionStatus;
  model: SyGridServerSelectionModel;
  selectAll: boolean;
  toggledRowIds: ReadonlyArray<string>;
  toggledNodes: ReadonlyArray<SyGridServerGroupToggledNode>;
  selectedCount: number;
  selectedCountKnown: boolean;
  loadedSelectedRowIds: ReadonlyArray<string>;
  issue: string;
}
```

<a id="used-by"></a>

## APIs using this type

- [getServerSideSelectionState](https://grid.syidax.com/docs/methods/getServerSideSelectionState.md) — Reads select-all conditions and exception IDs for the flat server row model. Reports a model mismatch for grouped models.
- [getServerGroupSelectionState](https://grid.syidax.com/docs/methods/getServerGroupSelectionState.md) — Reads hierarchical select-all and exception state for the grouped server row model.

<a id="parents"></a>

## Contracts containing this type

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

<a id="related"></a>

## Related types

- [SyGridServerSelectionStatus](https://grid.syidax.com/docs/types/SyGridServerSelectionStatus.md)
- [SyGridServerSelectionModel](https://grid.syidax.com/docs/types/SyGridServerSelectionModel.md)
- [SyGridServerGroupToggledNode](https://grid.syidax.com/docs/types/SyGridServerGroupToggledNode.md)
