diff --git a/packages/x-data-grid-pro/src/DataGridPro/useDataGridProProps.ts b/packages/x-data-grid-pro/src/DataGridPro/useDataGridProProps.ts index b970dfdd46455..0149f1a482f3a 100644 --- a/packages/x-data-grid-pro/src/DataGridPro/useDataGridProProps.ts +++ b/packages/x-data-grid-pro/src/DataGridPro/useDataGridProProps.ts @@ -37,19 +37,19 @@ const getDataGridProForcedProps: GetDataGridProForcedProps = (themedProps) => ({ */ export const DATA_GRID_PRO_PROPS_DEFAULT_VALUES: DataGridProPropsWithDefaultValue = { ...DATA_GRID_PROPS_DEFAULT_VALUES, - scrollEndThreshold: 80, - treeData: false, - defaultGroupingExpansionDepth: 0, autosizeOnMount: false, + defaultGroupingExpansionDepth: 0, disableAutosize: false, - disableColumnPinning: false, - keepColumnPositionIfDraggedOutside: false, disableChildrenFiltering: false, disableChildrenSorting: false, - rowReordering: false, - rowsLoadingMode: 'client', + disableColumnPinning: false, getDetailPanelHeight: () => 500, headerFilters: false, + keepColumnPositionIfDraggedOutside: false, + rowReordering: false, + rowsLoadingMode: 'client', + scrollEndThreshold: 80, + treeData: false, }; const defaultSlots = DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS; diff --git a/packages/x-data-grid/src/DataGrid/useDataGridProps.ts b/packages/x-data-grid/src/DataGrid/useDataGridProps.ts index 1cd75b30f70be..4e29d17e4f7bc 100644 --- a/packages/x-data-grid/src/DataGrid/useDataGridProps.ts +++ b/packages/x-data-grid/src/DataGrid/useDataGridProps.ts @@ -29,55 +29,55 @@ const DATA_GRID_FORCED_PROPS: { [key in DataGridForcedPropsKey]?: DataGridProces export const DATA_GRID_PROPS_DEFAULT_VALUES: DataGridPropsWithDefaultValues = { autoHeight: false, autoPageSize: false, + autosizeOnMount: false, checkboxSelection: false, checkboxSelectionVisibleOnly: false, + clipboardCopyCellDelimiter: '\t', columnBufferPx: 150, - rowBufferPx: 150, - rows: [], - rowSelection: true, + columnHeaderHeight: 56, + disableAutosize: false, disableColumnFilter: false, disableColumnMenu: false, + disableColumnReorder: false, + disableColumnResize: false, disableColumnSelector: false, + disableColumnSorting: false, disableDensitySelector: false, disableEval: false, disableMultipleColumnsFiltering: false, - disableMultipleRowSelection: false, - disableColumnSorting: false, disableMultipleColumnsSorting: false, + disableMultipleRowSelection: false, disableRowSelectionOnClick: false, disableVirtualization: false, editMode: GridEditModes.Cell, - filterMode: 'client', filterDebounceMs: 150, - columnHeaderHeight: 56, + filterMode: 'client', hideFooter: false, hideFooterPagination: false, hideFooterRowCount: false, hideFooterSelectedRowCount: false, ignoreDiacritics: false, + ignoreValueFormatterDuringExport: false, + keepColumnPositionIfDraggedOutside: false, + keepNonExistentRowsSelected: false, + loading: false, logger: console, logLevel: process.env.NODE_ENV === 'production' ? ('error' as const) : ('warn' as const), + pageSizeOptions: [25, 50, 100], pagination: false, paginationMode: 'client', - rowHeight: 52, resizeThrottleMs: 60, - pageSizeOptions: [25, 50, 100], + rowBufferPx: 150, + rowHeight: 52, + rowPositionsDebounceMs: 166, + rows: [], + rowSelection: true, rowSpacingType: 'margin', showCellVerticalBorder: false, showColumnVerticalBorder: false, - sortingOrder: ['asc' as const, 'desc' as const, null], sortingMode: 'client', + sortingOrder: ['asc' as const, 'desc' as const, null], throttleRowsMs: 0, - disableColumnReorder: false, - disableColumnResize: false, - keepNonExistentRowsSelected: false, - keepColumnPositionIfDraggedOutside: false, - ignoreValueFormatterDuringExport: false, - clipboardCopyCellDelimiter: '\t', - rowPositionsDebounceMs: 166, - autosizeOnMount: false, - disableAutosize: false, - loading: false, }; const defaultSlots = DATA_GRID_DEFAULT_SLOTS_COMPONENTS;