Combining ColReorder and ColVis together?
Combining ColReorder and ColVis together?
Hello everybody,
I am trying to use ColReorder and ColVis plug-ins in the same table but something is wrong.
First try:
[code]
$('#my').dataTable({
"aaSorting": [],
"sScrollY": "400px",
"bPaginate": false,
"bScrollCollapse": true,
"sDom": 'C<"clear">lfrtip',
"sDom": 'Rlfrtip'
});
[/code]
Second try:
[code]
$('#my').dataTable({
"aaSorting": [],
"sScrollY": "400px",
"bPaginate": false,
"bScrollCollapse": true,
"sDom": {'C<"clear">lfrtip', 'Rlfrtip'}
});
[/code]
Is it possible to integrate these two plug-ins together?
Thanks.
Regards.
I am trying to use ColReorder and ColVis plug-ins in the same table but something is wrong.
First try:
[code]
$('#my').dataTable({
"aaSorting": [],
"sScrollY": "400px",
"bPaginate": false,
"bScrollCollapse": true,
"sDom": 'C<"clear">lfrtip',
"sDom": 'Rlfrtip'
});
[/code]
Second try:
[code]
$('#my').dataTable({
"aaSorting": [],
"sScrollY": "400px",
"bPaginate": false,
"bScrollCollapse": true,
"sDom": {'C<"clear">lfrtip', 'Rlfrtip'}
});
[/code]
Is it possible to integrate these two plug-ins together?
Thanks.
Regards.
This discussion has been closed.
Replies
[code]
$('#my').dataTable({
"aaSorting": [],
"sScrollY": "400px",
"bPaginate": false,
"bScrollCollapse": true,
"sDom": 'RC<"clear">lfrtip'
});
[/code]
like in this example: http://datatables.net/release-datatables/extras/ColReorder/colvis.html .
Each letter in sDom is a feature, so to add features you just add letters to the string.
Allan
Thank you, Allan.