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.52k stars 1.31k forks source link

[tree view] Pagination support #14360

Open rasmusjosefsson-outreach opened 2 months ago

rasmusjosefsson-outreach commented 2 months ago

Summary

I was wondering if there are any plans or existing functionality for implementing a paginated tree view, allowing for loading additional nodes dynamically as needed.

In short what Im looking for is a tree component that has the following capabilities, while the two later seems to be possible already in MUI-X

Examples

├── Child Node 1
│   ├── Subchild 1.1
│   ├── Subchild 1.2
│   └── [Load More]  <-- This loads more subchildren under Child Node 1
├── Child Node 2
│   ├── Subchild 2.1
│   ├── Subchild 2.2
│   └── [Load More]  <-- This loads more subchildren under Child Node 2
│└── Child Node 3
│    └── Subchild 3.1
└ [Load More] <-- This loads more root nodes

Motivation

Large set of data that requires pagination support is currently not supported out of box.

Search keywords: Pagination, Tree

michelengelen commented 2 months ago

This is kind of related to #9685 (at least for the virtualization) ... but not quite. I'll add this to the board as a feature request! Thanks for opening! 👍🏼