Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Data grid] [Demo] Fix column pinning for Disable detail panel demo #14853

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions docs/data/data-grid/master-detail/FullWidthDetailPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';
import Paper from '@mui/material/Paper';
import Stack from '@mui/material/Stack';
import {
DataGridPro,
useGridApiContext,
GRID_DETAIL_PANEL_TOGGLE_FIELD,
} from '@mui/x-data-grid-pro';
import { DataGridPro, useGridApiContext } from '@mui/x-data-grid-pro';
import {
randomCreatedDate,
randomPrice,
Expand Down Expand Up @@ -201,7 +197,6 @@ export default function FullWidthDetailPanel() {
<DataGridPro
columns={columns}
rows={rows}
pinnedColumns={{ left: [GRID_DETAIL_PANEL_TOGGLE_FIELD] }}
getDetailPanelHeight={getDetailPanelHeight}
getDetailPanelContent={getDetailPanelContent}
sx={{
Expand Down
2 changes: 0 additions & 2 deletions docs/data/data-grid/master-detail/FullWidthDetailPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
DataGridPro,
GridColDef,
useGridApiContext,
GRID_DETAIL_PANEL_TOGGLE_FIELD,
GridRowParams,
} from '@mui/x-data-grid-pro';
import {
Expand Down Expand Up @@ -205,7 +204,6 @@ export default function FullWidthDetailPanel() {
<DataGridPro
columns={columns}
rows={rows}
pinnedColumns={{ left: [GRID_DETAIL_PANEL_TOGGLE_FIELD] }}
getDetailPanelHeight={getDetailPanelHeight}
getDetailPanelContent={getDetailPanelContent}
sx={{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<DataGridPro
columns={columns}
rows={rows}
pinnedColumns={{ left: [GRID_DETAIL_PANEL_TOGGLE_FIELD] }}
getDetailPanelHeight={getDetailPanelHeight}
getDetailPanelContent={getDetailPanelContent}
sx={{
Expand Down
Loading