KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Datatable pagination only show if number of rows > 10 #1440

Closed ankit raj opened this topic on on May 14, 2020 - 2 comments

ankit raj commented on May 14, 2020

Hello i wanted to put pagination but only if number of rows is greater than 10. otherwise i dont want page number 1 to be shown at all.what should i do?

KoolReport commented on May 14, 2020

It will be something like this:

<?php 
DataTables::create(array(
    "dataSource"=>$this->dataStore("orders")
    "options"=>array(
        "paging"=>$this->dataStore("orders")->count()>10,
    )
))
?>
ankit raj commented on May 21, 2020

Thank u.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

DataGrid