fix for pagination on tables

This commit is contained in:
Tim Chamberlain
2022-07-21 16:25:28 -05:00
parent be42a98d4d
commit 4412a274f4
3 changed files with 34 additions and 32 deletions

View File

@ -508,6 +508,7 @@ function EntityList({table}: Props): JSX.Element
<MDBox height="100%">
<DataGridPro
components={{Toolbar: CustomToolbar}}
pagination
paginationMode="server"
sortingMode="server"
filterMode="server"

View File

@ -46,8 +46,8 @@ import {QJobComplete} from "@kingsrook/qqq-frontend-core/lib/model/processes/QJo
import {QJobError} from "@kingsrook/qqq-frontend-core/lib/model/processes/QJobError";
import {QJobRunning} from "@kingsrook/qqq-frontend-core/lib/model/processes/QJobRunning";
import {
DataGrid, GridColDef, GridRowParams, GridRowsProp,
} from "@mui/x-data-grid";
DataGridPro, GridColDef, GridRowParams, GridRowsProp,
} from "@mui/x-data-grid-pro";
import QDynamicForm from "../../components/QDynamicForm";
import MDTypography from "../../../components/MDTypography";
@ -108,7 +108,7 @@ function getDynamicStepContent(
{" "}
<br />
<MDBox height="100%">
<DataGrid
<DataGridPro
page={recordConfig.pageNo}
disableSelectionOnClick
autoHeight
@ -122,6 +122,7 @@ function getDynamicStepContent(
onPageChange={recordConfig.handlePageChange}
onRowClick={recordConfig.handleRowClick}
paginationMode="server"
pagination
density="compact"
loading={recordConfig.loading}
/>