ColvIs plug-in Check box not deselecting / and not hiding columns.
ColvIs plug-in Check box not deselecting / and not hiding columns.
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}]
});
};
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}]
});
};
This discussion has been closed.
Replies
I must have had a copy of a buggy js….
Thanks any way ..