Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Hide any Table header in jquery data table from export to excel

$
0
0

Hide any Table header in jquery data table export to excel 

 

complete:function(data){

      $('#TableID').DataTable( {

        "scrollCollapse": true,
    "paging":   false,
        dom: 'Bfrtip',
        buttons: [
            'copy',
            'csv',
            'excel',
            'pdf',
            {
                extend: 'print',
                text: 'Print all',
                exportOptions: {
                    modifier: {
                        selected: null
                    }
                }
            }
        ],
        select: true
    } );
}

want to hide 1st column in exported excel :

<th class="noExport"> <input type="checkbox" class="AllSelectedTableID"/>Select all</th>


Shiv Sharma


Viewing all articles
Browse latest Browse all 7589

Trending Articles