Table Header is not showing in exported PDF/EXCEL if I am using column search option.

Table Header is not showing in exported PDF/EXCEL if I am using column search option.

Neeraj SimonNeeraj Simon Posts: 1Questions: 1Answers: 0

hi all,
I am a new user to dataTables.
I am exporting PDF/EXCEL by using buttons. Here facing one issue.
if I am using column search option then header columns are not visible in PDF/EXCEL.
Can u please help me. Thanks in advance.

here is my code:

$('#exampleList thead tr#filterrow th').each( function (exampleListId) {
var title = $('#exampleList thead th').eq( $(this).index() ).text();
{

         $(this).html( '<input type="text" style="width: 90%;"  id="exmpl'+exampleListId+'" placeholder="Search '+title+'"/>' ).focusout(function (e) {
                 window.flagfocus=true;

                window.searchColDets.push({
                    "column": e.target.id,
                    "value": e.target.value
                });              
            }); 
     }          
});
Party Code Type Party Name City
Party Code  Type  Party Name  City
This discussion has been closed.