# Control initial open state of Tabulator groups

**URL:** <https://discourse.holoviz.org/t/control-initial-open-state-of-tabulator-groups/4428>\
**Category:** Panel\
**Tags:** panel, tabulator\
**Created:** [October 22, 2022, 7:52am UTC](https://discourse.holoviz.org/t/control-initial-open-state-of-tabulator-groups/4428 "2022-10-22T07:52:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/jan/32/3814_2.png) [@Jan](https://discourse.holoviz.org/u/Jan)\
**Post date:** [October 22, 2022, 7:52am UTC](https://discourse.holoviz.org/t/control-initial-open-state-of-tabulator-groups/4428/1 "2022-10-22T07:52:37Z")

</div>

Is there a way to set the initial open state of the Panel `Tabulator` groups? Usually they are all open.

```python
from bokeh.sampledata.autompg import autompg
pn.widgets.Tabulator(autompg, groupby=['yr', 'origin'], 
                     height=240)

```

 ![Screen Shot 2022-10-22 at 4.12.00 AM](https://discourse.holoviz.org/uploads/default/original/2X/c/cc655bc687bf6b78903137c30ef65a0cf644db9e.png)

Is the Python Panel Tabulator widget based on this JavaScript element? Because there the option exits.

> [Grouping Data | Tabulator](https://tabulator.info/docs/5.4/group)

---

<div class="post-metadata">

**Author:** ![Jan](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/jan/32/3814_2.png) [@Jan](https://discourse.holoviz.org/u/Jan)\
**Post date:** [October 22, 2022, 8:07am UTC](https://discourse.holoviz.org/t/control-initial-open-state-of-tabulator-groups/4428/2 "2022-10-22T08:07:26Z")

</div>

I figured it out. There is an option called `configuration`. According to the documentation what it does is:

> **configuration (dict)**: A dictionary mapping used to specify Tabulator options not explicitly exposed by Panel.

So i just tried using the name of the option described on the JavaScript Tabulator element documentation page and it worked! The groups are all closed now. 🙂 Fascinating.

```auto
pn.widgets.Tabulator(autompg, groupby=['yr', 'origin'], 
                     configuration={'groupStartOpen':False},
                     height=240)

```

 ![Screen Shot 2022-10-22 at 4.10.28 AM](https://discourse.holoviz.org/uploads/default/original/2X/7/7bd6225beb8af5b4f98e857c87878e5be7874f79.png)
