Two FixedColumns dataTables on one page
Two FixedColumns dataTables on one page
![Setek](https://secure.gravatar.com/avatar/aec6dcdd019408bf4d14d8e85f05dd56/?default=https%3A%2F%2Fvanillicon.com%2Faec6dcdd019408bf4d14d8e85f05dd56_200.png&rating=g&size=120)
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