I'll like to be able to expand sub table for more than one column. (given that a row can only have one expanded sub table) #10127
Labels
component: data grid
This is the name of the generic UI component, not the React module!
status: waiting for author
Issue with insufficient information
Duplicates
Latest version
Summary 💡
I notice that only one column can be expanded in a given table, would it be possible to extend this functionality to multiple column?
Examples 🌈
to work around the problem
I can change the content of the extended table [ in the demo (see function DetailPanelContent) ]
<DataGridPro density="compact" columns={[ { field: 'name', headerName: selectedColumn, flex: 1 }, { field: 'quantity', headerName: 'Quantity', align: 'center', type: 'number', }, { field: 'unitPrice', headerName: 'Unit Price', type: 'number' }, { field: 'total', headerName: 'Total', type: 'number', valueGetter: ({ row }) => row.quantity * row.unitPrice, }, ]} rows={rowProp[selectedColumn as keyof object]} // here I can choose what data will be in the sub table... sx={{ flex: 1 }} hideFooter />
but it didn't work,
Thank you
Motivation 🔦
showing more information from one table
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: