_fnSortListener PROBLEM

_fnSortListener PROBLEM

mkdirmkdir Posts: 1Questions: 1Answers: 0
edited May 2020 in Free community support

Hi
Sorting doesn't work
When I click to sort the column, I get the following error. (on console)

Uncaught TypeError: Cannot create property 'length' on number '1'
at _fnSortListener (datatables.js:26340)
at datatables.js:26389
at HTMLTableCellElement.<anonymous> (datatables.js:26760)
at HTMLTableCellElement.dispatch (datatables.js:5238)
at HTMLTableCellElement.elemData.handle (datatables.js:4890)

datatables.js:26340 =>
sorting.length = 0; // THIS LINE ERROR ( Uncaught TypeError: Cannot create property 'length' on number '1' )
sorting.push( [ colIdx, asSorting[0] ] );
sorting[0]._idx = 0;

i using
https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js
https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js

https://cdn.datatables.net/v/dt/jqc-1.12.4/jszip-2.5.0/dt-1.10.20/af-2.3.4/b-1.6.1/b-colvis-1.6.1/b-flash-1.6.1/b-html5-1.6.1/b-print-1.6.1/cr-1.5.2/fc-3.3.0/fh-3.1.6/kt-2.5.1/r-2.2.3/rg-1.1.1/rr-1.2.6/sc-2.0.1/sp-1.0.1/sl-1.3.1/datatables.js

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.