Only export visible rows? (display:none; NOT filtered by TableTools or DataTables)

Only export visible rows? (display:none; NOT filtered by TableTools or DataTables)

jacobsjensenjacobsjensen Posts: 1Questions: 0Answers: 0
edited January 2013 in TableTools
Hi,

I've got an existing table where the only function I need from TableTools is to be able to save XLS files (csv).
I've got it working, but I've got an existing functions which sets some of the rows to display:none;.
How can I export only the visible rows?

(I don't want to remove any rows from the DOM! Because the user switches forth and back between hiding and showing some of the rows)

Replies

  • psspss Posts: 19Questions: 0Answers: 0
    edited January 2013
    Hi jacobsjensen,

    [quote]How can I export only the visible rows? [/quote]

    You can use mColumns parameter to export only visible rows as follow:

    "aButtons": [
    { "sExtends": "xls", "mColumns": "visible" }
    ]

    I hope it will help you.
This discussion has been closed.