# treeReparented

Reports tree reparenting results. Connect to parent-relationship saving on your app server.

Canonical: https://grid.syidax.com/docs/events/treeReparented/

<a id="meaning"></a>

## What does this API do?

Reports tree reparenting results. Connect to parent-relationship saving on your app server.

API for Pro features: Tree data

<a id="contract"></a>

## Exact input and result types

```typescript
treeReparented: SyGridTreeReparentedDetail
```

<a id="usage"></a>

## Usage flow

Subscribe with grid.addEventListener('treeReparented', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.

```javascript
const controller = new AbortController();
grid.addEventListener('treeReparented', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();
```

<a id="types"></a>

## Read related types

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

<a id="recipes"></a>

## Feature explanations and examples

- [Tree data](https://grid.syidax.com/docs/features/tree-data.md) — Trees display parent-child data, such as folders or organizations, with indentation and expansion controls. Unlike grouping equal values, the parent relationship already exists in the data.
