DataTable Export to Excel with selected table?

DataTable Export to Excel with selected table?

M_A_K687M_A_K687 Posts: 1Questions: 0Answers: 0
edited September 2013 in TableTools
Hi all,
i am using data table built-in extension for export datatable as excel which is working fine for export whole table now i want to export only selected column because some column having HTML entities (div,span, img ) inside table raw which causing issue.

i used following code for export whole table as excel

$(document).ready(function() {

$('#dashBoardTable').dataTable( {
"sScrollX": "200px",
"sScrollY": "200px",
"sDom": 'T<"clear">lfrtip',
// aaSorting: [['0', 'DESC']],
"sPaginationType": "full_numbers"
// "sAjaxSource": "sources/arrays.txt"
} );
} );

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    you can include/exclude columns with mColumns

    http://datatables.net/extras/tabletools/button_options#mColumns
This discussion has been closed.