m1ome / phalcon-datatables

Phalcon adapter for DataTables
49 stars 52 forks source link

Pagination #13

Closed Abdizriel closed 8 years ago

Abdizriel commented 9 years ago

Hello,

How can I mmake server-side pagination with your plugin? I thought that by default it will select by defafult only 20 rows, but in payload I can see that it fetch all data:

recordsFiltered: 1847 recordsTotal: 1847

m1ome commented 9 years ago

By default it uses pagination for QueryBuilder, and filter for ResultSet. It seek through post parameter called "length":

  public function getLimit() {
    return $this->params['length'];
  }

You can look at params parsing in /src/ParamsParser.php. Maybe you can provide your Ajax request?

Abdizriel commented 9 years ago

I'm using Array Adapter since I've to process data before sending them to DataTables

m1ome commented 9 years ago

Please, provide your XHR request.

m1ome commented 8 years ago

No new information, closed, due to lack of information