mbrn/material-table

Expose totalCount in remote data feature

damaon opened this issue · 1 comments

damaon commented

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.

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.