1

I am trying to use the datatable column chooser as shown in Datatable Colvis as shown below

$('#tableId').dataTable({
    "sDom": 'C<"clear">lfrtip',
    "oColVis": {
                "aiExclude": [ 0,15 ]
               },

    "aaSorting": [],
    "aaData":[],
    "aoColumns": [],
    "bScrollInfinite": true,
    "sScrollY": "280px",
    "sScrollX": "963px",
    "bDestroy":true,
    "iDisplayLength" : 10,
    "fnInitComplete": function() {
        // custom scroll bars
        //$('#tableId').find('.dataTables_scrollBody').jScrollPane();
    },
}); 

I have added 16 columns which I cant show up in the code here. But the column chooser doesn't show up on the UI. Any mistake am doing here?

4

1 に答える 1

1

申し訳ありませんが、ColVis プラグイン JS をアプリケーションに追加していなかったため、機能していませんでした。ご返信ありがとうございます。

于 2013-03-09T08:52:48.250 に答える