why not dom: 'Bfltip' bind control in row?

why not dom: 'Bfltip' bind control in row?

abd17abd17 Posts: 4Questions: 3Answers: 0

var table = $('#tblContactList').DataTable({
data: JSON.parse(data.d),
dom: 'Bfltip',
lengthChange: true,
buttons: ['excel', 'colvis'],
"columns": [
{ "data": "ContactId" },
{ "data": "FirsrName" },
{ "data": "LastName" },
{ "data": "Email" },
{ "data": "PhoneNumber" },
{ "data": "IsDND" },
{ "data": "CreatedBy" },
{ "data": "CreatedDate" }
],
"columnDefs": [
{
"targets": [0],
"visible": false
},
{
"targets": [6],
"visible": false
}
],
'lengthMenu': [[10, 25, 50, -1], [10, 25, 50, 'All']],
});

        table.buttons().container()
            .appendTo('#tblContactList_wrapper .col-md-6:eq(0)');
    },

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.