Datatables Column filter checkbox not working with

2019-08-03 14:27发布

问题:

I have issue with updatepanel(asp.net), I put datatables grid inside updatepanel, all are working fine, but when updatepanel called, the checkbox column filter disappear...

$('#data-tables').dataTable({

        dom: 'RC<"clear">lfrtip',
        //"bSortCellsTop": true,
        colVis: {
            exclude: [0, 1, 2]
        },
        'bAutoWidth': false,
        "bSort": false,
        'aoColumns': [

          { 'sWidth': '15%' }
        ],
        columnDefs: [
        {
            visible: false
            //, targets: 3
        }
        ]
    }).columnFilter(
           {
               sPlaceHolder: "head:after",
               aoColumns:
               [

                   { type: "checkbox", values: null }
               ]
           });