FixedColumns already initialised on this table
FixedColumns already initialised on this table
I am getting the error: FixedColumns already initialised on this table
But this is the first time I've initalized it.
$(document).ready(function(){
timeslot_distribution_report_table#myrand# =
$("##timeslot_distribution_report#myrand#").dataTable
(
{
"scrollCollapse": true,
"paginate":false,
"filter":false,
responsive: false,
"destroy": true,
"scrollX": "99.99%",
fixedColumns: {
leftColumns: 1
}
}
);
});
when i do it like this:
$(document).ready(function(){
timeslot_distribution_report_table =
$("##timeslot_distribution_report#myrand#").dataTable
(
{
"scrollCollapse": true,
"paginate":false,
"filter":false,
responsive: false,
"destroy": true,
"scrollX": "99.99%",
"initComplete": function(settings, json)
{
new $.fn.dataTable.FixedColumns(timeslot_distribution_report_table, {
leftColumns: 1,
heightMatch: 'auto'
} );
}
}
);
});
i get:
ReferenceError: timeslot_distribution_report_table is not defined
/manager_pro.cfm?action=managegames&league=598&content_action=view_schedules&schedule_id=36153:15
ignore the double quotes. theyre intended (for escaping purposes)
Answers
this seems to have worked: