export CSV vs. display:none -- BREAKS tabletools export csv feature copy_csv_xls.swf

export CSV vs. display:none -- BREAKS tabletools export csv feature copy_csv_xls.swf

lheredysazzelheredysazze Posts: 6Questions: 0Answers: 0
edited October 2013 in Bug reports
If the data to be exported are in a hidden DOM element when the page is loaded, the TableTools copy_csv_xls.swf file's export function will not work. The button is there, but clicking will not produce a result. Chrome and Firefox behave the same way in this regard.

When using display:none on a div that contains the table data (whether or not the hidden element also includes the export button), clicking the export button will not work.

Removing the display:none attribute from the container will fix the problem, but for certain projects it is desirable to have the datatables start off hidden. Unfortunately for now it looks like we have to choose between the two.

Replies

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin
    Have a look at this thread: http://datatables.net/forums/discussion/comment/23949 . If it doesn't help, link to a test case please.

    Allan
This discussion has been closed.