How to bring pagination controls after the last record

How to resolve this issue
You should override the pagination component with your owns.
How to do this:
- Copy this code to your project and rename the component: https://github.com/mbrn/material-table/blob/master/src/m-table-pagination.js
- Change what you need.
- Override the Pagination component with components property of material-table.
The problem what I see is that, the moment we change the number of records to display/pagesize, what happens is there are empty records which get displayed.
Lets say I set the pagesize as 50 initially, I change it to 10, what happens empty tr tags are getting created for the remaining 40 records.
Viceversa, if I set inital page size to 10 and change the pagesize to 50, it doesnt display all 50 records, but only


You can add emptyRowsWhenPaging: false in options
thanks that resolved the problem