# collapsing a panel

For collapsing the panel, in example after the load of data in the grid, just use an action like After data loading.

```javascript
getComponentByItemId('xxxx',win).collapse();
```
