serverSide rowModelType in Dash AgGrid

Thanks to your example code, I have learned how to implement row grouping with serverSide rowModelType.
But to take it one step further, I would like to allow users to freely apply row grouping in the columns of the sidebar.

In the current version, applying column to row grouping from the sidebar is disabled.

grid = html.Div(
    [
        dag.AgGrid(
            id="grid",
            #getRowId="params.data.id",
            columnDefs=columnDefs,            
            defaultColDef=dict(
                resizable=True,
            ),
            enableEnterpriseModules=True,
            rowModelType="serverSide",
            dashGridOptions={
                "sideBar": True
            },


        ),
    ]
)