Skip to content

[Bug] Broken dash-ag-grid==35.2.0 for certain dataTypeDefinitions configuration #451

@petar-qb

Description

@petar-qb

The following minimal reproducible example works fine with the dash-ag-grid==33.3.3, but it crashes with the latest dash-ag-grid==35.2.0.

import dash
from dash import html
import dash_ag_grid as dag
import plotly.express as px

df = px.data.iris()

app = dash.Dash(__name__)

app.layout = html.Div(
    [
        dag.AgGrid(
            rowData=df.to_dict("records"),
            columnDefs=[{"field": c} for c in df.columns],
            dashGridOptions={
                "dataTypeDefinitions": {
                    "number": {
                        "columnTypes": "rightAligned",
                    }
                }
            }
        )
    ]
)

if __name__ == "__main__":
    app.run(debug=True)

Here's what I get when I open the app with the dash-ag-grid==35.2.0:

Screen.Recording.2026-04-21.at.16.19.20.mov

I guess the bug is introduced with this PR -> #440, but not fully sure.

We in Vizro team would like to stay updated with the latest dash-ag-grid, but our default configuration for dag.AgGrid objects in Vizro contains the configuration from the example above. So for now, we're sticked with the dash-ag-grid=33.3.3.

Thanks in advance, and let us know if you need any further information or help 🚀

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions