I have been trying to find a configuration like colspan that lets me expand the group row to the available space. If I do not use wraptext, the group row text gets truncated. Any ideas around this?
# Mark Issue as grouping column and hide it from row data
gb.configure_column("Issue", rowGroup=True, hide=True)
# Configure visible columns (those that show inside the group)
visible_cols = ["Owner", "Count", "ETA", "Remarks", "Status"]
for col in visible_cols:
gb.configure_column(col, wrapText=True, autoHeight=True, cellStyle={"font-family": "system-ui", "font-size": "14px"})
# Customize the group header display
gb.configure_grid_options(
autoGroupColumnDef={
"headerName": "Issue",
"minWidth": 200,
"cellRendererParams": {
"suppressCount": True, # Hides row count in group label
},
"wrapText": True,
"autoHeight": True,
"cellStyle": {"font-family": "system-ui", "font-size": "14px"}
},
groupDefaultExpanded=-1 # Expand all groups initially
)
# Render
AgGrid(
df,
gridOptions=gb.build(),
update_mode=GridUpdateMode.NO_UPDATE,
enable_enterprise_modules=True,
allow_unsafe_jscode=True,
fit_columns_on_grid_load=True,
height=600
)