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

Expose totalCount in remote data feature #3227

Open
damaon opened this issue Oct 17, 2023 · 1 comment
Open

Expose totalCount in remote data feature #3227

damaon opened this issue Oct 17, 2023 · 1 comment
Labels
feature wontfix This will not be worked on

Comments

@damaon
Copy link

damaon commented Oct 17, 2023

Guidelines

Please include a demo of the issue/behavior/question you have

I want to get access to totalCount with remote data feature. Currently material-table in default pagination doesn't display totalCount anywhere.

Currently it's used here only: https://github.com/mbrn/material-table/blob/b26e2f715abb2217f0d14e1efb15c6367fe12de1/src/material-table.js#L579C3-L579C16

Describe the solution you'd like

Store totalCount in tableRef.dataManager or expose something like onDataChange(data) event

Describe alternatives you've considered
Alternative is that I do fetching/pagination manually.

Additional context
People want to know how many results they have in the table. Yes it can be calculated by perPage * pages but not super accurate and little akward.

@damaon damaon added the feature label Oct 17, 2023
Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

@stale stale bot added the wontfix This will not be worked on label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant