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] Tree data children pagination #14663

Closed
daviesgeek opened this issue Sep 18, 2024 · 5 comments
Closed

[data grid] Tree data children pagination #14663

daviesgeek opened this issue Sep 18, 2024 · 5 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Tree data Related to the data grid Tree data feature support: commercial Support request from paid users support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/

Comments

@daviesgeek
Copy link

daviesgeek commented Sep 18, 2024

The problem in depth

I'm trying to figure out how to properly paginate children rows when the grid is displaying tree data. It doesn't look like there's support for this use case. I have a case where I might need to support up to a few hundred children rows and those need to be paginated, as i can't fetch all of them at one time.
Is this 1) something that's supported and 2) if not, is this a use case that's on the roadmap for support? 3) if none of this, is there a good way for me to support this?

(I didn't think a live example super important, so didn't include one but i can if needed)

Your environment

`npx @mui/envinfo`
 System:
    OS: macOS 14.5
  Binaries:
    Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
    npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: 128.0.6613.138
    Edge: 128.0.2739.79
    Safari: 17.5
  npmPackages:
    @emotion/react: ^11.10.6 => 11.11.1 
    @emotion/styled: ^11.10.6 => 11.11.5 
    @mui/base:  5.0.0-beta.24 
    @mui/core-downloads-tracker:  5.16.6 
    @mui/icons-material: ^5.8.2 => 5.14.18 
    @mui/lab: ^5.0.0-alpha.84 => 5.0.0-alpha.153 
    @mui/material: ^5.15.20 => 5.16.6 
    @mui/private-theming:  5.14.18 
    @mui/styled-engine:  5.14.18 
    @mui/styles: ^5.15.20 => 5.15.20 
    @mui/system: ^5.15.20 => 5.16.6 
    @mui/types:  7.2.9 
    @mui/utils:  5.16.6 
    @mui/x-data-grid:  7.12.1 
    @mui/x-data-grid-premium: 7.12.1 => 7.12.1 
    @mui/x-data-grid-pro:  7.12.1 
    @mui/x-date-pickers:  6.18.1 
    @mui/x-date-pickers-pro: 6.18.1 => 6.18.1 
    @mui/x-internals:  7.12.0 
    @mui/x-license:  7.12.0 
    @mui/x-license-pro:  6.10.2 
    @types/react: ^18.0.10 => 18.2.38 
    react: ^18.1.0 => 18.2.0 
    react-dom: ^18.1.0 => 18.3.1 
    typescript: ^4.7.2 => 4.9.5 

Search keywords: data grid, tree view, server side data, pagination
Order ID: 87473

@daviesgeek daviesgeek added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users labels Sep 18, 2024
@github-actions github-actions bot added the component: data grid This is the name of the generic UI component, not the React module! label Sep 18, 2024
@flaviendelangle flaviendelangle changed the title [data grid] tree view children pagination [data grid] Tree data children pagination Sep 19, 2024
@michelengelen michelengelen added feature: Tree data Related to the data grid Tree data feature support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/ labels Sep 19, 2024
@michelengelen
Copy link
Member

Hey @daviesgeek ... we aren't currently supporting pagination of child rows.
@MBilalShafi do you know if we can provide a workaround for this?

@MBilalShafi
Copy link
Member

Nested lazy-loading is planned for the future after the root-level lazy-loading is completed.
Here's the issue that covers this specific request: #14527
Feel free to share your requirements and (or) upvote the issue to see it land faster.

do you know if we can provide a workaround for this?

I don't think so there's a straightforward workaround for this in the userland as of now since we need to make some changes in the internal DOM structure before supporting that.

@arminmeh Should we set some groundwork in #13878 to help smoothen the work on #14527?

@daviesgeek
Copy link
Author

Thank you both, appreciate the response

@MBilalShafi MBilalShafi removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 27, 2024
@MBilalShafi
Copy link
Member

Closing in favor of #14527, subscribe to that one for updates.

Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

We value your feedback @daviesgeek! How was your experience with our support team?
We'd love to hear your thoughts in this brief Support Satisfaction survey. Your insights help us improve!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Tree data Related to the data grid Tree data feature support: commercial Support request from paid users support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/
Projects
None yet
Development

No branches or pull requests

3 participants