Optional pagination button
Optional pagination button
mkersten
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?
This discussion has been closed.
Answers
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");
whereexample
is your table ID),Cheers,
Colin