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

Datatables pagination #357

Closed
Jromero97 opened this issue Nov 7, 2018 · 9 comments
Closed

Datatables pagination #357

Jromero97 opened this issue Nov 7, 2018 · 9 comments
Labels

Comments

@Jromero97
Copy link

Hey, I have a doubt with the datatable component of rmwc, there is a function to make pagination like datatable.js plugin? or any related?

@jamesmfriedman
Copy link
Collaborator

There isn’t one built in, but the way it is structured is intentional so it can easily be used with third party libraries like react-virtualized.

@jamesmfriedman
Copy link
Collaborator

@Jromero97 I'm going to close this one out since its not an issue. I don't plan on adding pagination to the data table component since data handling can be quite specific to how your app is structured. Let me know if there is something else I can help with.

@windgaucho
Copy link

@jamesmfriedman Can you please show me an example on how can I use the Datatables component with react-virtualized?

@jamesmfriedman
Copy link
Collaborator

I need to update the docs to not call that out. I wrongfully assumed it would work but unfortunately react virtualized doesn’t handle anything except divs.

I’ll put on the todo list finding a virtual scrolling library that plays nice.

@windgaucho
Copy link

About pagination? have you used some pagination component with the datatables component?

@jamesmfriedman
Copy link
Collaborator

Just home rolled ones. The whole thing is very dependent on any particular app's state and if want to paginate via page numbers or scrolling. Curious, how much data are you trying to visualize?

@windgaucho
Copy link

It's depends, I want to use the datatable in every component of my app. In some components (components that handle the configuration of my app) it is not much data.
But in other component (the main ones) handle to much data.
Nevertheless I want to use the same datatable component in all my app and keep my ui consistent.
Currently I am using antd in all of my applications and I want to migrate it to material component but I am unnable to find some datatable component that suits my needs.
Because of that I am asking if you know some paginator that you have used with your datatable component.

@ohanar
Copy link

ohanar commented Mar 3, 2020

Is there any update on this? I'm also interested in this for lists. For reference, I have tables and lists that can have more than a million rows, which crashes browsers unless something like react-virtualized or react-window is used.

@jamesmfriedman
Copy link
Collaborator

Yes as a matter of fact, I was able to solve it with react-window.

bvaughn/react-window#60 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants