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:

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

  • 0 = First-level detail
  • 1 = Second-level detail
  • n = nth-level detail
parentData
T
-

Parent row data object associated with the detail grid being destroyed.

rowIndex
number
-

Parent row index in the master grid (zero-based).