# DataGridAdaptiveDialogOpenEvent (@salmonui/data-grid)

> The DataGridAdaptiveDialogOpenEvent interface of @salmonui/data-grid: onBeforeAdaptiveDialogOpen (beforeOpenAdaptiveDialog); preventDefault() keeps it closed.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridAdaptiveDialogOpenEvent

```ts
import type { DataGridAdaptiveDialogOpenEvent } from '@salmonui/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid.md).

## Reference

Kind: interface

```ts
interface DataGridAdaptiveDialogOpenEvent extends DataGridEvent {
    readonly kind: DataGridAdaptiveDialogKind;
    readonly field: string | undefined;
}
```

`onBeforeAdaptiveDialogOpen` (`beforeOpenAdaptiveDialog`); `preventDefault()` keeps it closed.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `kind` | `readonly kind: DataGridAdaptiveDialogKind;` |  |  |
| `field` | `readonly field: string \| undefined;` |  | Filter dialog for one column; undefined opens the column list. |
| `type` | `type: string;` | inherited | `'sortChange'`, `'beforeSortChange'`, ... |
| `source` | `source: DataGridEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited | True after `preventDefault()` (before-events and click events). |
| `preventDefault` | `preventDefault: () => void;` | inherited | Before-events and click events: cancels the action (or the built-in behavior). |
