Datatables Column filter checkbox not working with updatepanel

匆匆过客 提交于 2020-01-05 08:47:52

问题


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 }
               ]
           });

来源:https://stackoverflow.com/questions/31587656/datatables-column-filter-checkbox-not-working-with-updatepanel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!