Unable to use fnSortListener - "Uncaught TypeError: undefined is not a function"
Unable to use fnSortListener - "Uncaught TypeError: undefined is not a function"
Hello,
I am trying to bind the column sorting to a span tag inside the th element instead of the th its self using fnSortListener.
I successfull unbind the th elements using:
$('th').unbind('click.DT');
However my next line of code trigger an "Uncaught TypeError: undefined is not a function" error.
catalogueDataTable.fnSortListener($('.sort_title')[0], 0);
Any help would be appreciated.
Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Sounds like you are using
$().DataTable(). See the second top FAQ. If you are using$().DataTable()then use theorder.listener()method.Allan
Awesome! Key piece of information I missed there,
Thanks for quick response.
Mark