[data grid] v7 API: Make the behavior of GridColDef
flags consistent
#10552
Labels
breaking change
component: data grid
This is the name of the generic UI component, not the React module!
umbrella
For grouping multiple issues to provide a holistic view
v7.x
The main goal to address:
Make the
colDef
flags work like this, if a flag is passed asfalse
, it should only be disallowed from the UI and not using the API.For example if for a column,
colDef.sortable
is false. The sorting won't work using the grid UI, howeverapiRef.current.sortColumn
will update the sorting as expected.Context: #10180 (comment)
The flags which ✅ already work as expected:
The flags/items to update
colDef.sortable
: [DataGrid] Allow to programmatically sort unsortable columns #11512colDef.groupable
: [DataGridPremium] Allow programmatically grouping non-groupable columns #11539colDef.pinnable
(does not work as expected too, I was mistaken previously): [DataGridPro] Allow non-pinnable columns to be pinned programmatically #11680colDef.filterable
: [DataGrid] Allow to filter non-filterable columns programmatically #11538colDef.aggregable
: [DataGridPremium] Allow aggregation to be applied for non-aggregable columns #11574The text was updated successfully, but these errors were encountered: