79410982

Date: 2025-02-04 08:17:12
Score: 0.5
Natty:
Report link
    //Im facing the same issue 
    //Now I fixed with using 


    //sx={{display: 'grid'}}

      <DataGrid
          rows={rows}
          sx={{display: 'grid'}}
          columns={columns}
          checkboxSelection
          onRowSelectionModelChange={(selectionModel) =>
            handleRowSelectionChange(selectionModel as GridRowId[]) 
            
          }
          slots={{
            toolbar: () => (
              <CustomToolbar
                exportToPDF={exportToPDF}
              />
            ),
            noRowsOverlay: NoRowsOverlay,
          }}
          disableRowSelectionOnClick
          density='compact'
          pagination
          paginationModel={paginationModel}
          rowCount={rowCount}
          paginationMode={paginationMode}
          pageSizeOptions={[5, 10, 20, 50]}
          onPaginationModelChange={handlePaginationModelChange}
        />
Reasons:
  • Whitelisted phrase (-2): I fixed
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Low reputation (1):
Posted by: Sadiq Shah - II