disable drag option ColReorderWithResize.js

disable drag option ColReorderWithResize.js

alderhernandezalderhernandez Posts: 33Questions: 11Answers: 1
edited January 2018 in Free community support

Hi. im usin ColReorderWithResize.js http://legacy.datatables.net/extras/thirdparty/ColReorderWithResize/ it works great
but I want to disable the option to drag the headers and keep the rezise option. Somebody made it??
please help

$('#tableempleados').DataTable({
        "lengthMenu": [[10, 25, 50, 100], [10, 25, 50, 100]],
        "pagingType": "full_numbers",
        "processing": true,
        "serverSide": true,
        "sDom": "Rlfrtip",//--here i use the plugin
        "searching": false,
        "ajax": {
            "url": "LoadEmpleados",
            "type": "POST",
            "datatype": "json",
            "data": {
                FILTRO: $('#txtbuscarempleado').val()
            }
        },
        "columns": [
            { "data": "Codigo", "name": "Codigo", "autoWidth": true },
            { "data": "NOMBRE", "name": "NOMBRE", "autoWidth": true },
            { "data": "PLANCONTABLE", "name": "PLANCONTABLE", "autoWidth": true },
            { "data": "MontoCredito", "name": "MontoCredito", "autoWidth": true },
            { "data": "IDCargo", "name": "IDCargo", "autoWidth": true },
            { "data": "CARGO", "name": "CARGO", "autoWidth": true },
            { "data": "ESTADO", "name": "ESTADO", "autoWidth": true },
            { "data": "Cedula", "name": "Cedula", "autoWidth": true }            
        ]
    });
This discussion has been closed.