ColvIs plug-in Check box not deselecting / and not hiding columns.

ColvIs plug-in Check box not deselecting / and not hiding columns.

MasoudMasoud Posts: 2Questions: 0Answers: 0
edited August 2013 in Plug-ins
I’m not an expert at JavaScript.
I am trying to add this plug in to my datatable and all is working fine (add, columns that I want to show up to hide come up)
But when I click on the columns I want to hid the check box never gets deselected and the column does not hide.
There are no java script errors.
Anyone have any advice.
My data table looks like this.

Table.fnInitDomSelectors = function(){
Table.$downloadPkgsTable = $('table#downloadlist').dataTable({
"sDom": 'C<"clear">lfrtip',
"oColVis": {
"aiExclude": [ 0,1,8,13,14 ]
},
"bLengthChange": true,
"bPaginate": true,
"bFilter": true,
"bSort": true,
"bInfo": true,
"bAutoWidth": false,
"bSortClasses": false,
"iDisplayLength": -1,
"aLengthMenu":[[50,100,500,-1],[50,100,500,"All"]],
"aaSorting": [[2, 'asc']],
"aoColumns": [ null,
{"mDataProp":"packageId","bVisible":false},
{"mDataProp":"packageName"},
null,
{"mDataProp":"packageVersion"},
{"mDataProp":"packageDomain"},
{"mDataProp":"packageDescription"},
null,
{"mDataProp":"packageSize","bVisible":false},
{"mDataProp":"packageChecksum"},
{"mDataProp":"availabilityDate"},
null,
null,
{"mDataProp":"packagePath", "bVisible":false},
{"mDataProp":"readmePath", "bVisible":false}]

});
};

Replies

  • MasoudMasoud Posts: 2Questions: 0Answers: 0
    Ok no need for any help for some reason I downloaded DataTables-1.9.4 and used the ColVis.js provided in the that zip and it worked.
    I must have had a copy of a buggy js….
    Thanks any way ..
This discussion has been closed.