Mui-datatables: How do I show all rows?

Created on 22 Oct 2018  ·  7Comments  ·  Source: gregnb/mui-datatables

I've just been and searching and can't seem to find any solution.

Most helpful comment

Override this with createMuiTheme

   MUIDataTable: {
      responsiveScroll: {
        maxHeight: "100%"
      }
    },

All 7 comments

What happens when you disable pagination by setting it false?

It shows the set value of "rowsPerPage" option.

What can I do so that the page scrolls when I scroll on the table.

Based on this comment: https://github.com/gregnb/mui-datatables/issues/65#issuecomment-390922124 it seems that the only way to do it, is setting rowsPerPage to a ridiculously high number.

Thanks. ❤

Override this with createMuiTheme

   MUIDataTable: {
      responsiveScroll: {
        maxHeight: "100%"
      }
    },

As of V2.10.0 it is now possible to use the prop responsive="scrollFullHeight" to make the table full height and a scroll behavior at the same time. That should fix the issue.

See https://github.com/gregnb/mui-datatables/pull/867

Was this page helpful?
0 / 5 - 0 ratings