DetailGridDestroyContext
Context passed to the onDetailGridDestroy lifecycle hook.
Provides access to the detail grid instance before it is destroyed.
Use this for cleanup, state persistence, or logging.
Props
The following table outlines the props for the DetailGridDestroyContext:
| Name | Type | Default | Description |
|---|---|---|---|
| gridInstance | - | GridComponent instance being destroyed. Still functional during this callback. Use to access last state before cleanup. After this callback completes, instance will be removed from DOM. | |
| nestingDepth | number | - | Nesting depth of the destroyed detail grid.
|
| parentData | T | - | Parent row data object associated with the detail grid being destroyed. |
| rowIndex | number | - | Parent row index in the master grid (zero-based). |