Weird Export Thing Going on with tabletools and ajax data

Weird Export Thing Going on with tabletools and ajax data

DarkenspiritDarkenspirit Posts: 48Questions: 11Answers: 0
edited May 2014 in TableTools

So I have pagination turned on and with tabletools enabled the copy, xls, etc options only export what you have loaded in terms of pages.

For instance i have default 50 items show for page 1. So when you hit copy or export or any option for exporting in tabletools, it only exports those 50 rows. Now if you hit next and load page 2. and now hit export/copy or whatever, it exports 100 rows or copies 100 rows. If you go back to page 1, it still copy/exports 100 rows but if you load page 3 from here or jump to page 30, it will copy/export 150. 50 for each page you load so to speak until if you go through all pages only then will it export everything.

This works the same way for searching. If the first 50 are loaded and then you use the search function and it finds lets say 13 more rows that were not part of the initial 50, when you go to copy and export, it will now copy/export 63 rows.

Any Ideas why it would be doing this? And how can I just get the export to export the entire thing?

http://debug.datatables.net/uzukoz

Answers

  • DarkenspiritDarkenspirit Posts: 48Questions: 11Answers: 0

    Figured it out.

    It happens to deal with the deferred render setting I setup.

    Having deferred render set as false lets you export the entire thing.

This discussion has been closed.