Datatables TableTools problem with 'Print' functionality

Datatables TableTools problem with 'Print' functionality

jeffreddyjeffreddy Posts: 2Questions: 0Answers: 0
edited August 2013 in General
I'm using the TableTools and have gone with all defaults to start. I'm loading my table via a ServerSide call. When I click the TableTool's 'Print' button, everything renders as expected, but when my server code is called, the postback value for iDisplayLength is -1. This causes my print screen to display 0 records.

Any thoughts on this? I've modified my default iDisplayLength, so perhaps that has some bearing.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    -1 for the display length means "show all" to DataTables. To be honest, server-side processing is rather redundant with TableTools, since TableTools is client-side only. So you'd need to load all records up front, at which point server-side processing just overhead.

    Allan
This discussion has been closed.