How to set the number of pages

How to set the number of pages

AmitCBRAmitCBR Posts: 2Questions: 1Answers: 0

Hello,

I'm new to datatables, and I would like to set the number of pages to a value i get from the db.
For instance, if i have 13,000 rows and i would like to get 100 from the db every time with a value of the total rows just to create the buttons by that. when the user will press the button i'll fire event to get the specific 100 records from the db.

Can i do that with DataTables ?

Thanks in advance,
Amit

Answers

  • anjibmananjibman Posts: 115Questions: 10Answers: 0

    You can use start and length parameter for server side processing. See http://datatables.net/manual/server-side for full list of parameters.

  • AmitCBRAmitCBR Posts: 2Questions: 1Answers: 0

    Thanks, anjibman !
    When i do that, it requires AJAX to be set.

    my situation is that i have the data on a ko.observableArray that i bind to the table.

    so, after setting the above, it fails.

    any suggestions ?

This discussion has been closed.