# serverSideGroupCols

Columns grouped on the server, ordered from outermost group inward. An empty array represents flat data.

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

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

## What does this API do?

Columns grouped on the server, ordered from outermost group inward. An empty array represents flat data.

API for Pro features: Server-Side Row Model

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

## Exact input and result types

```typescript
serverSideGroupCols: string[]
```

| Item | Value |
| --- | --- |
| JavaScript name | serverSideGroupCols |
| HTML attribute | server-side-group-cols |
| Default | undefined |
| Input type | string[] |

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

## 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.

<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.
