mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.07k stars 1.26k forks source link

[question][data grid] data grid don't trigger onRowScrollEnd on infinite loading with less rows than viewport #9022

Closed noghartt closed 1 year ago

noghartt commented 1 year ago

Order ID or Support key 💳 (optional)

49216

Duplicates

Latest version

The problem in depth 🔍

Using the infinite loading feature, we have some kind of weird behavior:

When we have less rows than the necessary to scroll the viewport, the onRowScrollEnd and the fetch to news rows aren't being triggered. Is there a way, using DataGrid, to trig it even if isn't overflowing the viewport?

Your environment 🌎

  System:
    OS: macOS 13.3.1
  Binaries:
    Node: 18.1.0 - ~/.nvm/versions/node/v18.1.0/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.8.0 - ~/.nvm/versions/node/v18.1.0/bin/npm
  Browsers:
    Chrome: 112.0.5615.137
    Edge: Not Found
    Firefox: Not Found
    Safari: 16.4
  npmPackages:
    @emotion/styled:  10.3.0 
    @mui/base:  5.0.0-alpha.128 
    @mui/core-downloads-tracker:  5.12.2 
    @mui/icons-material: 5.11.16 => 5.11.16 
    @mui/lab:  5.0.0-alpha.129 
    @mui/material: ^5.11.10 => 5.12.2 
    @mui/private-theming:  5.12.3 
    @mui/styled-engine-sc: 5.12.0 => 5.11.11 (5.12.0)
    @mui/styles: ^5.11.9 => 5.12.3 
    @mui/system:  5.12.3 
    @mui/types:  7.2.4 
    @mui/utils:  5.12.3 
    @mui/x-data-grid:  5.17.26 
    @mui/x-data-grid-generator:  5.17.26 
    @mui/x-data-grid-premium:  5.17.26 
    @mui/x-data-grid-pro:  5.17.26 
    @mui/x-date-pickers:  5.0.20 
    @mui/x-date-pickers-pro:  5.0.20 
    @mui/x-license-pro:  5.17.12 
    @types/react: ^18.0.28 => 18.2.6 
    react: 18.2.0 => 18.2.0 
    react-dom: 18.2.0 => 18.2.0 
    styled-components:  5.3.10 
    typescript: 5.0.4 => 5.0.4 
m4theushw commented 1 year ago

Duplicate of https://github.com/mui/mui-x/issues/4184

We're working on improving how this prop works in #8672

Please subscribe to https://github.com/mui/mui-x/issues/4371

github-actions[bot] commented 6 months ago

:warning: This issue has been closed. If you have a similar problem, please open a new issue and provide details about your specific problem. If you can provide additional information related to this topic that could help future readers, please feel free to leave a comment.

How did we do @noghartt? Your experience with our support team matters to us. If you have a moment, please share your thoughts through our brief survey.