TableTools + bServerSide + sAjaxSource = problem

TableTools + bServerSide + sAjaxSource = problem

korrokorro Posts: 3Questions: 0Answers: 0
edited March 2010 in TableTools
Hello.
As in title, i'm trying to use DataTables with TableTools.
Copy and exports work fine, but i have problem with print.
When i click print button, print template is showing, but data disappears from table.
After watching requests to backend, i find out, that script is sending wrong data:
iDisplayStart=0
iDisplayLength=-1
are sent to server.

Do you think is bug or maybe it's my fault?
Regards.

Replies

  • korrokorro Posts: 3Questions: 0Answers: 0
    Now i think, that iDisplayLength have value -1 in purpose, it means infinity.
    Am I right?
  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin
    Exactly that - yes. If you want to allow TableTools support for 'print' when using server-side processing then you'll need to add something to deal with -1 length.

    Worth noting that TableTools doesn't really support server-side processing at the moment, since it will only export the data on the client-side (i.e. the current page). The print feature is an exception since it actively redraws the table.

    Allan
  • oxeronoxeron Posts: 1Questions: 0Answers: 0
    So you mean it's not possible to print only current data in datatables when using server side processing ?
This discussion has been closed.