var table;

$(document).ready(function(){
  table = $("#tradeEnquiry").DataTable({
    "paging":   true,
    "scrollX": true,
    "scrollY": false,
    "processing": true, 
    "serverSide": true, 
    "pageLength": 15, 
    "order": [],
    "ajax": {
      "url": CI_ROOT+'tradeenquiry/getTradeEnquiry',
      "type": "POST"
    },
    "columnDefs": [
      { 
        "targets": "_all",
        "orderable": false
      },
      {"targets":[0,1],"width":60},
      {"targets":[2],"width":150},
      {"targets":[3],"width":200},
      {"targets":[4],"width":150},
      {"targets":[5],"width":150},
      {"targets":[6],"width":130}
    ],
    dom: 'Bfrtip',
    buttons: []
  });
});