Skip to content

GravionLabs/elysion / .agents/skills/ng-ag-grid-developer

ng-ag-grid-developer

Verified

Build or modify Angular components with AG Grid Enterprise. Use when a task mentions ag-grid.

references/row-models.md

View on GitHub
# AG Grid — Row Models

| Model                    | Use when                                                               | Module                     |
| ------------------------ | ---------------------------------------------------------------------- | -------------------------- |
| Client-side (default)    | Data fits in browser (< ~100k rows); full sort/filter/group/pivot/tree | `ClientSideRowModelModule` |
| Server-side (Enterprise) | Large data, server-side grouping/pivoting, lazy loading                | `ServerSideRowModelModule` |
| Viewport (Enterprise)    | Real-time views of visible rows only; implement `IViewportDatasource`  | `ViewportRowModelModule`   |

For large or server-backed data prefer SSRM over the Infinite Row Model.

## Client-side updates

```typescript
api.setGridOption('rowData', newRows); // replace all
api.applyTransaction({ add: [], update: [], remove: [] }); // partial (needs getRowId)
```

## SSRM

`rowModelType` is an `[Initial]` option — changing it requires destroying and re-creating the grid.

```typescript
gridOptions: GridOptions = { rowModelType: 'serverSide', serverSideInitialRowCount: 100 };

class MyDatasource implements IServerSideDatasource {
  getRows(params: IServerSideGetRowsParams): void {
    const { startRow, endRow, sortModel, filterModel } = params.request;
    api.getRows({ startRow, endRow, sortModel, filterModel }).subscribe({
      next: (r) => params.success({ rowData: r.rows, rowCount: r.total }),
      error: () => params.fail(),
    });
  }
}
// after gridReady:
api.setGridOption('serverSideDatasource', new MyDatasource());
```

Server-side grouping/pivoting: `params.request` also carries `rowGroupCols`, `groupKeys`, `pivotCols`; the server applies them. Set `serverSideEnableClientSideSort: false` to let the server sort.
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall