Versions
- dash-ag-grid: 33.3.3
- AG Grid (bundled): 33.3.2
Problem
When rowSelection is not configured (selection intentionally disabled), console shows:
AG Grid: error #132 Row selection features are not available unless rowSelection is enabled.
Console link:
https://www.ag-grid.com/react-data-grid/errors/132?_version_=33.3.2
Stack trace points to AgGrid.react.js and setNodesSelected.
Steps to Reproduce
- Use
dag.AgGrid without rowSelection in dashGridOptions.
- Do not intentionally use selection features.
- Leave
selectedRows at default (or omit it).
Actual vs Expected
- Actual: the wrapper still calls selection APIs (
deselectAll / setNodesSelected), and AG Grid v33 logs AG Grid error #132 (displayed as a yellow console warning).
- Expected: if
rowSelection is disabled/unset, wrapper should not call selection APIs.
Workaround
Setting selectedRows=None on dag.AgGrid avoids the warning.
Notes
This seems related to wrapper selection sync behavior with default selectedRows handling.
From source:
src/lib/components/AgGrid.react.js defaults selectedRows: []
src/lib/fragments/AgGrid.react.js selection sync calls:
gridApi.deselectAll()
gridApi.setNodesSelected(...)
I also checked current dash-ag-grid-34 and dash-ag-grid-35 repo code (local clones), and this same path still exists there (same default + same selection API calls), so this does not appear fixed yet in those branches either.
Versions
Problem
When
rowSelectionis not configured (selection intentionally disabled), console shows:AG Grid: error #132 Row selection features are not available unless rowSelection is enabled.Console link:
https://www.ag-grid.com/react-data-grid/errors/132?_version_=33.3.2Stack trace points to
AgGrid.react.jsandsetNodesSelected.Steps to Reproduce
dag.AgGridwithoutrowSelectionindashGridOptions.selectedRowsat default (or omit it).Actual vs Expected
deselectAll/setNodesSelected), and AG Grid v33 logs AG Grid error#132(displayed as a yellow console warning).rowSelectionis disabled/unset, wrapper should not call selection APIs.Workaround
Setting
selectedRows=Noneondag.AgGridavoids the warning.Notes
This seems related to wrapper selection sync behavior with default
selectedRowshandling.From source:
src/lib/components/AgGrid.react.jsdefaultsselectedRows: []src/lib/fragments/AgGrid.react.jsselection sync calls:gridApi.deselectAll()gridApi.setNodesSelected(...)I also checked current
dash-ag-grid-34anddash-ag-grid-35repo code (local clones), and this same path still exists there (same default + same selection API calls), so this does not appear fixed yet in those branches either.