# ViewportRequestContext

Fields, allowed values, and APIs that use ViewportRequestContext.

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

<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 ViewportRequestContext {
  readonly sortModel: ReadonlyArray<{
    readonly colId: string;
    readonly sort: 'asc' | 'desc';
  }>;
  readonly filterModel: Readonly<Record<string, unknown>>;
  readonly quickFilter?: string;
  readonly advancedFilterModel?: unknown;
}
```

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

## Contracts containing this type

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