Datatable thead contenteditable not fixed

Datatable thead contenteditable not fixed

Roby FirnandoRoby Firnando Posts: 3Questions: 3Answers: 0

i have a table with datatable and contenteditable in every columns ,
but when i put long text in a column it's doesn't fixed .
why and how to fixed it ?
below is my code :

table = $('#sparepart_id').DataTable({
    "paging": true,
    "stateSave": true,
    "pagingType": "full_numbers",
    "lengthChange": false,
    "searching": false,
    "ordering": true,
    "info": false,
    "autoWidth": false,
    "pageLength": 12,
       scrollY: "auto",
        scrollX: "auto",
        scrollCollapse: true,

   stateLoadCallback: function (settings) {
     var o;
     $.ajax( {
        url     : BASE_URL+"spareparts/load_layout",
        type    : "POST",
        data    : { module_table : "sparepart-list"},
        async   : false,
        dataType: 'json',
         success: function (json) {
             o = JSON.parse(json.json);

             console.log(json.json);
         },
         error:function(data){
            console.log(data);
         }
     } );
     return o;
 }



});

thank you

Answers

This discussion has been closed.