CSV File Export Without Loading All Pages

CSV File Export Without Loading All Pages

DionatanDionatan Posts: 2Questions: 1Answers: 0

I would like to know if there is a way to export a CSV file of everything present in a paginated table using the Buttons extension, but without loading all the pages.

Answers

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    I'm going to assume you are using server-side processing? Client-side processing will export all rows of the table, hence my assumption.

    Based on that, please see this FAQ:

    Q. How can I export the whole table when using serverSide and Buttons.

    Allan

  • DionatanDionatan Posts: 2Questions: 1Answers: 0

    The processing is client-side. When the user queries a table with, for example, 40,000 records, pagination limits the display to, say, 50 records per page. However, I want the 'Export to .csv' button to export all 40,000 records at once, not just the 50 displayed on the current page.

  • kthorngrenkthorngren Posts: 21,545Questions: 26Answers: 4,988

    Please post your Datatables init code. This example shows that by default the export buttons will export all rows in the table when using client side processing. There is something specific to your page that is limiting this.

    Kevin

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    If you could post a link to a test case as well, that would be great.

    Thanks,
    Allan

Sign In or Register to comment.