数据表禁用单个列搜索隐藏列

时间:2016-06-23 03:44:35

标签: jquery datatables-1.10

我在我的数据表中隐藏了一列。但是当我使用单独的列搜索(文本)时,我会遇到问题。我想禁用隐藏列搜索,但它似乎无法正常工作。搜索文本框仍然显示。

oTable = $("#tracedata1").dataTable({
             "bAutoWidth" : false,
             "bRetrieve"  : true,
             "scrollY": 200,
             "scrollX": true,
             "deferRender": true,
             "scroller": {
                   loadingIndicator: true
                   },
             "serverSide" : true,
             "processing" : true,
             "sAjaxSource": 'show2ndsampl.php',
             "fnServerData": function (sSource,aoData,fnCallback){
                    $.ajax({
                             "dataType":'json',
                             "type":'POST',
                             "url":sSource,
                             "data":aoData,
                             "success":function(json){
                                   fnCallback(json);
                                   }
                             });
                    },
            "order"  : [[1,"desc"]],
            "aoColumns"  : [
                    /*ID*/{"visible":false, "searchable":false},
                   /*date*/        null

enter image description here  显示错误:stopPropagation is not defined

0 个答案:

没有答案