Optional pagination button

Optional pagination button

mkerstenmkersten Posts: 1Questions: 1Answers: 0

Consider the datatable rows all fit in the panel where they are rendered. Then the pagination control buttons need not be displayed. If the table is large then they should be shown. Is there an easy way to model this behavior?

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @mkersten ,

    Not by default, as controls coming and going could make for a confusing interface. It would be easy to do though - you could check whether all the rows are being displayed in the drawCallback, and if so, hide the pagination control with CSS (something like $('#example_paginate').css("display", "none"); where example is your table ID),

    Cheers,

    Colin

This discussion has been closed.