Data Table export when multiple tables are in a same page

Data Table export when multiple tables are in a same page

visionxvisionx Posts: 22Questions: 4Answers: 5
edited February 2015 in Free community support

We are facing a problem with table tools (exporting to csv,xls, pdf etc) when there are multiple data tables in same page. It is a tab based layout and exporting is working only for first tab and for the other tabs it gets stuck. But functionality working correctly in IE9. We only have the issue in some versions in IE > 9 and Chrome.

Appreciate your help !!!

Answers

  • visionxvisionx Posts: 22Questions: 4Answers: 5

    I managed to get it works as follows.

    Added following code for the onclick event of the tabs.

        var activeTabString='.nav-tabs a[href="#tabId"]';
        $(activeTabString).tab('show');
        var oTableToUpdate =  $('tableId').dataTable();
        oTableToUpdate.fnDraw();
    
This discussion has been closed.