integration of colvis and fixed column
integration of colvis and fixed column
nikhilrn
Posts: 4Questions: 0Answers: 0
Hi Allan. I was trying to integrate two of your examples. COLVIS and FIXED HEADER. I am stuck. Hope you help me out. Colvis Works onload. After selecting a column to show, I am not able to deselect it, I mean unselect the column so that it hides.
I am pasting the code which I tried in yours. Awaiting your help.
$(document).ready(function() {
var oTable1 = $('#example').dataTable({
"sDom": 'C<"clear">lfrtip',
"bPaginate":false,
"aoColumnDefs": [{ "bVisible": false, "aTargets": [1,2] }],
"oColVis": {"aiExclude": [ 0,3,4,5,6,7]},
"sScrollX": "100%",
"sScrollXInner": "150%"
} );new FixedColumns( oTable1 );
});
I am pasting the code which I tried in yours. Awaiting your help.
$(document).ready(function() {
var oTable1 = $('#example').dataTable({
"sDom": 'C<"clear">lfrtip',
"bPaginate":false,
"aoColumnDefs": [{ "bVisible": false, "aTargets": [1,2] }],
"oColVis": {"aiExclude": [ 0,3,4,5,6,7]},
"sScrollX": "100%",
"sScrollXInner": "150%"
} );new FixedColumns( oTable1 );
});
This discussion has been closed.