Fixedcolumns error Uncaught TypeError: Cannot read properties of undefined (reading 'start')
Fixedcolumns error Uncaught TypeError: Cannot read properties of undefined (reading 'start')
ericbeecher1
Posts: 1Questions: 1Answers: 0
I am trying to set the fixed columns using the fixedColumns().start() method. However when i call that method it throws the error Uncaught TypeError: Cannot read properties of undefined (reading 'start').
This is the code i am using
table.DataTable().fixedColumns().start(2);
I am able to set the columns when i initialize the datatable, however calling this function throws an error. Any help would be appreciated
Answers
What is assigned to the
table
variable`?If it's the Datatables API, ie
var table = $('#example').DataTable( {} );
, then you will want to just use this:If this doesn't help then please build a simple test case replicating the error so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin