Two FixedColumns dataTables on one page
Two FixedColumns dataTables on one page
Setek
Posts: 4Questions: 0Answers: 0
For some reason, this doesn't seem to work. I am able to get two DataTables on one page, but the FixedColumns will only run on the first one.
I've made a jsFiddle to show how FixedColumns only runs on the first table:
http://jsfiddle.net/uh8Tn/
My code is:
[code]
var oTable = $('.racetable').dataTable({
"sScrollX": "600px",
"sScrollY": "150px",
"bDestroy": true,
"bScrollCollapse": true,
"bPaginate": false,
"bFilter": false,
"bInfo": false,
"bSort": false
});
new FixedColumns(oTable, {
"iLeftColumns": 2
});
[/code]
Should I be doing this some other way?
I've made a jsFiddle to show how FixedColumns only runs on the first table:
http://jsfiddle.net/uh8Tn/
My code is:
[code]
var oTable = $('.racetable').dataTable({
"sScrollX": "600px",
"sScrollY": "150px",
"bDestroy": true,
"bScrollCollapse": true,
"bPaginate": false,
"bFilter": false,
"bInfo": false,
"bSort": false
});
new FixedColumns(oTable, {
"iLeftColumns": 2
});
[/code]
Should I be doing this some other way?
This discussion has been closed.
Replies
I've opened an issue for this here: https://github.com/DataTables/FixedColumns/issues/14
Allan